Next Article in Journal
Spectral-Free Double Light Detection of DNA Based on a Porous Silicon Bragg Mirror
Next Article in Special Issue
Validity of Ultra-Short-Term HRV Analysis Using PPG—A Preliminary Study
Previous Article in Journal
Non-Destructive Impedance Monitoring of Bacterial Metabolic Activity towards Continuous Lead Biorecovery
Previous Article in Special Issue
The Usefulness of Assessing Heart Rate Variability in Patients with Acute Myocardial Infarction (HeaRt-V-AMI)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Processing Photoplethysmograms Recorded by Smartwatches to Improve the Quality of Derived Pulse Rate Variability

by
Adam G. Polak
1,*,†,
Bartłomiej Klich
2,†,
Stanisław Saganowski
2,
Monika A. Prucnal
1 and
Przemysław Kazienko
2
1
Department of Electronic and Photonic Metrology, Wrocław University of Science and Technology, 50-317 Wrocław, Poland
2
Department of Artificial Intelligence, Wrocław University of Science and Technology, 50-370 Wrocław, Poland
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2022, 22(18), 7047; https://doi.org/10.3390/s22187047
Submission received: 19 August 2022 / Revised: 9 September 2022 / Accepted: 14 September 2022 / Published: 17 September 2022

Abstract

:
Cardiac monitoring based on wearable photoplethysmography (PPG) is widespread because of its usability and low cost. Unfortunately, PPG is negatively affected by various types of disruptions, which could introduce errors to the algorithm that extracts pulse rate variability (PRV). This study aims to identify the nature of such artifacts caused by various types of factors under the conditions of precisely planned experiments. We also propose methods for their reduction based solely on the PPG signal while preserving the frequency content of PRV. The accuracy of PRV derived from PPG was compared to heart rate variability (HRV) derived from the accompanying ECG. The results indicate that filtering PPG signals using the discrete wavelet transform and its inverse (DWT/IDWT) is suitable for removing slow components and high-frequency noise. Moreover, the main benefit of amplitude demodulation is better preparation of the PPG to determine the duration of pulse cycles and reduce the impact of some other artifacts. Post-processing applied to HRV and PRV indicates that the correction of outliers based on local statistical measures of signals and the autoregressive (AR) model is only important when the PPG is of low quality and has no effect under good signal quality. The main conclusion is that the DWT/IDWT, followed by amplitude demodulation, enables the proper preparation of the PPG signal for the subsequent use of PRV extraction algorithms, particularly at rest. However, post-processing in the proposed form should be applied more in the situations of observed strong artifacts than in motionless laboratory experiments.

1. Introduction

For many years, electrocardiography (ECG) has been considered the gold standard in the field of cardiac testing. It is an essential tool for diagnosing various cardiac diseases. It is also commonly applied to derive another signal—heart rate variability (HRV), whose high diagnostic ability has been demonstrated in recent years [1,2,3]. In particular, the analysis of frequency components, including high (0.15–0.4 Hz), low (0.04–0.15 Hz), very low (0.004–0.04 Hz), and ultra-low (<0.004 Hz) bands, is of actual interest, as they reflect, among others, sympathetic and the parasympathetic activity, blood pressure, thermoregulation, renin–angiotensin mechanism, or circadian rhythms [4]. ECG requires the usage of electrodes attached to the body, which is not considered as convenient, especially when moving. One of the latest developments is the use of a chest strap with measuring electrodes [5,6]. However, this solution still causes inconveniences in everyday life, e.g., squeezed chest feeling and possible skin rash. Recently, cardiac monitoring based on photoplethysmography (PPG) is gaining more and more popularity also due to its lower cost and greater usability. It is widely used in various wearable devices, such as smartwatches and wristbands. The ability to measure someone’s PPG may be used to monitor her/his affective state, sleep quality, and other aspects impacting overall well-being [7,8,9,10,11]. Unfortunately, PPG is negatively affected by various types of disruptions related to device shifting around, changes in lighting, or the intensity and nature of body movements. In particular, these artifacts interfere with the algorithms that extract pulse rate variability (PRV) from the PPG, introducing serious errors into this diagnostically valuable signal.
The above-mentioned noticeable interest in the PRV signal acquisition by wearable devices and its reliable processing to extract encoded information has prompted many research groups to sophisticated work on reducing artifacts in PPG. The vast majority of these studies has been summarized in recent review articles [12,13,14,15,16,17,18]. Overall, the approaches used fall into three general groups. The first of them includes signal decomposition methods using the fact that some artifacts are located in specific components and as such can be removed from the signal reconstructed from the other ones. Among them, the most popular are: discrete wavelet transform (DWT), empirical mode decomposition (EMD) or independent component analysis (ICA), and less frequently applied: variational mode decomposition (VMD), short-time Fourier transform (STFT) or singular value decomposition (SVD). Their common advantage is the ability of removing artifacts without using any other signal recorded simultaneously. The second group covers adaptive filters that require an additional signal, and these are sensitive to the sources of artifacts included in the PPG. An inherent feature of such filters is the removal of components represented by the accompanying data from the signal under consideration. Since usually most harmful artifacts come from body or arm movements, the signal preferred here is from an acceleration sensor built into same wearable. The most frequently used adaptive filters are: least mean squares (LMS, both in linear and nonlinear version), recursive least squares (RLS) and the Wiener filter. The third general set consists of other methods of a different nature. Among them, one can find classical spectral analysis (for artifacts characterized by a frequency content diverse from the PPG spectrum), methods examining the statistical parameters of signal samples, or the most recently developing approach, i.e., machine learning methods. It is also worth noting the trend of combining multiple of the above-mentioned types of methods, which often demonstrate complementary properties.
The aim of this study is to identify the nature of artifacts caused by various types of factors under the conditions of precisely planned experiments as well as to propose and validate methods for artefact reduction based solely on the PPG signal. Their goal is to improve the accuracy of PRV derivation, paying simultaneously special attention to preserving the frequency content of PRV.
A big role in the selection and effectiveness of artifact removal methods is knowledge about linking their character with specific conditions. For this reason, in many studies, the PPG signal was recorded during experiments inducing artifacts. Most often, they included: (1) baseline measurements [19,20,21,22,23]; (2) controlled movements of an arm or fingers (please note that the experiments with the arm and finger movements are compatible because the choice of the type depended on the position of the PPG sensor on a wrist or finger) [20,24,25,26,27,28,29,30,31,32,33], (3) breathing with different patterns [22,34], (4) walking or running on a treadmill with a regulated pace [21,24,25,35,36], or (5) tapping the sensor [26]. In many studies, the correctness of PPG processing was assessed by comparing it with the results of ECG processing, which was taken as the reference data. Since one of the effects of artifacts is the different number of detected heartbeats in the synchronized ECG and PPG signals, a direct comparison of both derived HRV and PRV signals is not trivial. Rather, to avoid this problem, different averaged metrics were used for the assumed time intervals, such as the heart rate (HR) or statistical measures, so that the number of samples in both signals was the same [34,36,37,38,39,40,41,42,43,44,45,46]. Direct comparisons between PRV and HRV extracted from the PPG and ECG have been studied only a few times. In [47,48], the corrupted fragments of PPG and the associated R-R intervals from the ECG were ignored, so that the rest of the pulses could be unambiguously matched. The root mean square of subsequent differences was calculated by Lam et al. but without any explanation of how the problem with a different number of samples was resolved [49]. Another proposed approach was to interpolate these time series with a constant sampling rate using splines [22]. Nevertheless, more complete approaches to directly comparing HRV and PRV signals are still needed.
The main contribution of this study is to propose a series of methods for the reduction of artifacts affecting PPG based solely on this signal and focusing on the proper derivation of PRV, thus maintaining its frequency content, which is crucial for subsequent PRV analyses. The methods were tested and selected on the basis of carefully designed experiments with an increasing level of artifacts. In particular, the advantage of PPG amplitude demodulation in determining the duration of pulse cycles was demonstrated as well as the benefits of PRV post-processing, including statistical correction of outliers and prediction of PRV samples using the autoregressive (AR) model. We also demonstrated the possibility of quantifying the correctness of the extracted PRV against the reference HRV derived from the simultaneous ECG using dynamic time warping for data of unequal length or classical measures for the uniformly resampled signals.
The organization of the paper is as follows. The first part of Section 2 provides a description of data acquisition with a detailed protocol of experiments, while the second part contains a description of the methods used to process the ECG and PPG signals. The end of this section is a presentation of the post-processing algorithms and the evaluation procedure and metrics. Section 3 shows the results obtained by the applied algorithms on the PPG signal with reference to the ECG. The discussion of the results, taking into account also limitations and problems encountered in this work, is included in Section 4. Finally, Section 5 summarizes the work.

2. Materials and Methods

2.1. Experimental Protocol and Collected Data

The study was conducted in accordance with the Declaration of Helsinki and ethical guidelines provided by the National Science Centre in Poland. All participants were informed about the study before, and all provided signed written consent.
We collected data from 11 participants (three females) aged between 22 and 34 (mean = 25, SD = 3.7). All participants were students or university employees. Only one person reported being diagnosed with left ventricular hypertrophy in the past. Other participants did not report any heart-related problems.
We exploited three wearable devices simultaneously worn by all participants: (1) Samsung Galaxy Watch 3, (2) Polar H10, and (3) Empatica E4. The smartwatch Samsung Galaxy Watch 3 was placed on a non-dominant hand to gather the photoplethysmograph—PPG (with 25 Hz sampling rate) and accelerometer—ACC (50 Hz) signals. The chest strap Polar H10 was utilized to obtain the reference signals: electrocardiogram—ECG (130 Hz) and ACC (200 Hz). The E4 Manager desktop application was used to download the data stored in the Empatica E4, while for the acquisition of signals from the Samsung and Polar, we had developed our own mobile application working in real time with Bluetooth transfer. The Polar H4 appears to be a good and comfortable alternative to the Holter monitors when performing intense activities [6,50]. Additionally, we placed the wristband Empatica E4 on the dominant hand to acquire PPG (32 Hz) and ACC (64 Hz) signals. However, data from the Empatica are not considered in this article, because it is equipped with embedded pre-processing routines and returns the PPG signals devoid of some artifacts, especially of low-frequency content. Therefore, in this paper, we focused on the more corrupted signals recorded by Galaxy Watch 3 to make the study more complete, leaving the data from the Empatica for later use.
The experiments were divided into three sessions (Table 1 and Figure 1): (1) a laboratory session, (2) a running session, (3) and an everyday life session. The sessions were intended to contain an increasing level of motion artifacts. Before each session, the participants were instructed about the experiments and how to prepare and use the devices (e.g., to moisten the chest strap’s electrodes). Before and after each session, the participants simultaneously tapped all three devices together to enable synchronization of the signals across the different devices.
The laboratory session consisted of the following five activities:
  • NoMove. Participants were sitting still in a comfortable position on a chair, with hands resting on a table, normally breathing, and without talking. The room lighting (a lamp) was constant. With this setup, we intended to have the minimal number of artifacts in the signal.
  • Light. Participants were sitting still as in the NoMove experiment. The room lighting was being switched on and off every ten seconds (using a metronome to measure the interval).
  • Tap. While in a sitting position, the participants were tapping the Samsung Watch 3 with a finger, imitating a typical smartwatch usage. The rhythm of the tapping was determined with the metronome, i.e., with one-second periods during the first 150 s of the experiment and two-seconds periods during the remaining 150 s.
  • Arm. While sitting, the participants were constantly raising and putting down a straight arm, possibly in one plane. The movement pace was guided with a sine wave displayed on a monitor—ten seconds for each direction of movement. The goal of this experiment was to analyze, i.a., the effect of changes in hydrostatic blood pressure on artifacts.
  • Breath. While sitting, the participants were performing a controlled breathing, which was guided with a sine wave, i.e., five breaths per minute during the first 150 s of the experiment (very slow and deep breath), and 30 breaths per minute during the remaining 150 s (fast breathing).
Each experiment lasted five minutes. The interval between experiments was 20 s, during which the participant should not move but relax. The entire laboratory session lasted about 30 min.
The running session included three experiments, each with different pace, i.e., 1, 5, and 9 km/h; equivalent to about 40, 110, and 150 steps per minute, respectively. Each activity lasted five minutes, and the interval between them was one minute. The pace was selected based on the assumption that the lower and higher number of steps per minute will be significantly different from the recorded HR value, whereas the middle value will be similar to the observed HR value.
The everyday life session covered at least seven hours of participants’ regular day as well as a minimum of five hours of their sleep.

2.2. General Methodology

This paper focuses on analyzing the PPG and ECG signals from the laboratory session only, with the data from the treadmill and everyday life sessions postponed for use in further research. This is related to the goal of this study, which is the use of artifact reduction methods based solely on the PPG signal. Meanwhile, removing artifacts from the treadmill and everyday life sessions would require taking into account the ACC signals as well, since then, the PPGs contain even stronger motion artifacts than in the analyzed “dynamic” experiments.
Processing of the PPG and ECG signals for PRV and HRV extraction has been divided into the following stages (Figure 2): pre-processing including signal synchronization, HRV and PRV derivation, post-processing, and evaluation by comparing HRV and PRV obtained from the ECG and PPG analyses. The methods used at each stage of the analysis for the PPG and ECG signals are different in some cases, as shown in Figure 2 and detailed in Section 2.3 and Section 2.4. Subsequently, to obtain the highest possible accuracy of PRV from the PPG signal, it was decided to compare three popular methods of its extraction (see Section 2.4). All signal processing procedures were implemented in Matlab (R2022a, MathWorks, Natick, MA, USA).

2.3. ECG Processing

In general, the ECG obtained from the Polar H10 device was of a good quality. To reduce high-frequency noise and baseline wander, occurring especially at the beginning of the measurements, we applied the discrete wavelet transform (DWT) [51] but in a form with maximal overlap, which does not change the original length of the signal. The wavelets allow transforming a time-value signal into the time-scale components. The similarity of the signal with the wavelets is calculated separately with a sliding time window. The use of the DWT is often referred to as a cascaded band-pass filter and called wavelet decomposition. It consists of decomposing a given signal into a specific series of coefficients with decreasing frequencies, using a bank of filters.
The Symlet 4 wavelet was chosen to decompose the ECG signal because of its similarity to the QRS complex [52]. We used ten decomposition levels so that the approximation coefficients covered frequencies below 0.064 Hz. To obtain the filtered signal, the first two detailed coefficients (between 16.25 and 65 Hz) and the approximation coefficients were rejected, as they contained the most signal disruption. Next, the signal was reconstructed from the remaining coefficients, using the inverse DWT (IDWT).
To extract HRV from the ECG signal, we utilized the Pan–Tompkins algorithm [53]. Originally in the algorithm, prior to the determination of the QRS complexes, signal processing is applied to remove noise and to expose the feature under study. In our case, band-pass filtering composed of cascaded low-pass and high-pass filters was not needed, because we had already applied the wavelet transform (which is more effective at removing noise).

2.4. PPG Processing

After analyzing various wavelets used for PPG denoising [54], we started the filtering of the PPG signal by applying DWT with the Coiflets 1 as the base wavelet, since it suits well the PPG pulse wave consisting of systolic and diastolic phases. Because the main useful frequency range of the PPG signal is 0.8 to 2.5 Hz [55] and the sampling rate was 25 Hz, four levels of decomposition were performed. As a result, DWT provided the 3rd and 4th detail coefficients associated with frequencies 0.78–1.56 Hz and 1.56–3.12 Hz, respectively (the total limits correspond to the HR from 47 to 187 bpm), from which the filtered PPG signal was reconstructed.
The next step in processing the PPG signal was amplitude demodulation. We analyzed three algorithms reducing amplitude fluctuations, i.e.,
  • Adaptive standardization, which consists of (1) calculating standard deviation over a sliding window of the odd length and (2) dividing by the obtained deviation the signal value of the middle sample in the considered window.
  • Online algorithm performed with the following steps: (1) selecting a window of odd length; (2) subtracting from the signal the constant component; (3) calculating the difference between global maximum and minimum, further referred to as Delta; (4) determining local maxima and minima with the following conditions: m a x > P × D e l t a or m i n < P × D e l t a , where P is an adjustable parameter; (5) obtaining the average of all local maxima and minima; (6) dividing by the obtained average the middle sample in the considered window; (7) sliding the window by one sample and repeating steps 2–7 until the window reaches the last sample in the analyzed signal.
  • Envelope-based filtering. We considered several approaches to determine envelopes, i.e.,:
    (a)
    Using spline interpolation over local maxima separated by a given number of samples;
    (b)
    Calculating root mean square of the signal;
    (c)
    Using the magnitude of the signal, which is computed by filtering with a Hilbert-FIR filter over the sliding window;
    (d)
    Applying discrete Fourier transform implemented as the Hilbert one, which returns symmetric envelopes used for signal demodulation by dividing the samples by the local envelope value, and it is parameter-free.
Finally, we decided to use the last one 3(d), because it provided satisfactory results.
To derive PRVs from the PPG signals, three algorithms were tested:
  • PDA—Peak Detection Algorithm [56];
  • AMPD—Automatic at Multiscale-based Peak Detection [57];
  • SSF—Slope Sum Function [58].
The PDA is a simple algorithm that compares neighboring samples to find local minima and maxima. We used a peak detection threshold set to 0.8.
The AMPD has been designed and is commonly used for noisy periodic and quasi-periodic signals. It is based on the calculation of the local maxima scalogram, which is computationally expensive. To apply it to a longer signal, e.g., 5 min or longer, we had to divide the PPG signal into shorter parts, i.e., 30 peaks, which in our case was about 20 s.
The SSF is widely used to determine systolic peaks in a PPG signal obtained from a wrist or finger [58,59,60]. It applies a transformation function defined as:
SSF = k = i w i Δ x k where Δ x k = Δ s : Δ s > 0 0 : Δ s 0
where w = 128 ms is the length of the considered window, and s is the length of the PPG signal.
The decision rule was established by a threshold calculated as the mean of the first ten seconds of the signal, which is updated by 40% of the maximum value of SSF transformation for each detected pulse. The SSF algorithm determines each pulse onset of the signal, which is the dicrotic point, so in order to obtain systolic peaks, the analyzed signal had to be reflected upside-down.

2.5. Signal Synchronization

Since the ECG and PPG signals were collected with two different devices, it was necessary to develop a synchronization procedure, which was applied after DTW/IDTW filtering for both PPG and ECG signals. For that reason, each session started and ended with tapping the devices against each other. To observe the taps in the ACC signal better, it was sequentially processed. The squares of the three-axis signals were summed, and then, the arithmetic mean was subtracted. Finally, to smooth the signal, the moving average with a 20-, 34-, and 16-sample window length (experimentally chosen for the Samsung, Polar, and Empatica devices, respectively) was applied.
Next, the Hilbert transform was used to obtain the envelope, which made the tapping easier to see. Eventually, the signals were normalized to the range [0, 1]. The timestamps corresponding to the taps were manually obtained from such ACC signals. Since the Polar H10 does not provide timestamps for all samples, the timestamps from the Samsung Watch 3 were used to create a time vector for a particular session, and the samples within a given session were distributed equally across the time vector. Both signals, ECG and PPG, were then upsampled by interpolation with cubic splines to 1 kHz to enhance the HRV and PRV quantization levels, standardize, and facilitate the analysis between the signals (Figure 2).
The alignment of the ECG and PPG signals was tuned manually by comparing and adjusting their waveforms, i.e., R-waves and systolic peaks.

2.6. Post-Processing

After computing the HRV and PRV waveforms, post-processing was applied to possibly increase their reliability, taking into account both a priori information about HRVs series and their local properties (Figure 2). First, a wide but limited physiological HR range was considered. For young athletes, the resting HR can be as low as 44 ± 2 bpm [61], and the maximum pulse, depending on age, can be estimated for people aged around 20 years as approximately 198 bpm [62]. Therefore, the expected physiological R-R or pulse-to-pulse intervals must be 0.3–1.5 ms (200–40 bpm, respectively). Taking this into account, both PRV and HRV were screened [49]. If the interval was less than 0.3 ms, the second detected peak was treated as an artifact, and this interval was combined with the next one. Alternatively, intervals longer than 1.5 ms, suggesting that the actual pulse had been skipped, were split into half values. Moreover, since PRV were particularly strongly influenced by artifacts, they were additionally fixed using the moving average of 25 samples (the value corresponding to the order of the AR model used in the next step) and its standard deviation (SD). In particular, when a given sample was outside the range of mean ± 3 × SD (the “three-sigma rule” ensuring that the probability of correcting a valid value is less than 0.003), it was processed in the same way as previously. The next post-processing stage involved resampling the HRV and PRV data unevenly distributed over time by cubic spline interpolation. It is necessary to allow both direct comparisons of ECG and PPG derived signals (the same number of evenly spaced samples) and the limitation of the HRV and PRV spectra to the physiological bound of 0.5 Hz by digital filtering. For that purpose, both HRV and PRV series were first oversampled to 10 Hz, then low-pass filtered to 0.5 Hz, and finally downsampled again to 1 Hz. Having PRV sampled at this constant frequency, it was also possible to correct their local frequency properties using autoregressive modeling, since AR model coefficients cover spectral information [63]. In such an approach, a 25-sample window [63] was slid across the PRV data to estimate AR model local coefficients and to predict the next sample together with its SD. If the relevant PRV sample differed from the predicted value by more than the SD, it was replaced with that prediction.

2.7. Evaluation Procedure and Metrics

Complete processing of the ECG and PPG signals returned HRVs and PRVs for the three methods of PPG processing after several stages: raw signals, HRVs and PRVs fixed according to physiological and statistical premises, data uniformly resampled and low-pass filtered, as well as PRVs with locally corrected spectra. Appropriate metrics should have been applied to assess the impact of the subsequent signal processing stages on the overall quality of final PRV. It is possible to compare two associated time series with a different number of samples using a dynamic time warping (DTW) technique that aligns the corresponding signals [64,65]. Thanks to this, the DTW-defined distances between these signals were calculated before and after repairing the HRV and PRV series. Linear correlation coefficients (r) for HRVs after their aligning were also computed. The next comparisons were made for the evenly sampled signals (before and after autoregressive correction) by calculating the relative root mean squared errors (RRMSE):
RRMSE = i = 1 n ( PRV i HRV i ) 2 HRV i 2 × 100 %
where n is the length of the HRVs vectors and i is the element index. Then, these results were averaged (mRRMSE) across the study participants for a particular experiment:
mRRMSE = i = 1 N RRMSE ( P i ) 2 N
where N is the number of participants for each experiment, and P i is the participant index. For each of the metrics, ordinary means and SD were computed.
Finally, the effect of post-processing on the PRV frequency content was examined by calculating the power spectral density (PSD) of the HRV as well as PRV signals—before and after pre-processing, and then comparing them. PSD was estimated for 5 min waveforms of data sampled at 1 Hz using the Welch method with a window length of 30 s and 25 samples overlapped.

3. Experimental Results

The raw PPG signals collected by the Samsung Watch 3 on Person 6 (P6) during the further analyzed experiments are shown in Figure 3. In addition, an exemplary raw PPG signal characterized by a significant baseline wandering is depicted in Figure 4a. This 10 s fragment was selected as well representing the effects of subsequent steps of processing the data from the Arm experiments, which were characterized by hard-to-remove artifacts. By applying the DWT/IDWT to that signal, we managed to decrease the wandering effect, as shown in Figure 4b. Removing the amplitude modulation helped us to further improve and standardize the signal, as shown in Figure 4c. This, in turn, enabled us to apply the PRV extraction algorithms. The results of applying the AMPD algorithm are shown in Figure 4d.
On the other hand, the ECG signal obtained with the Polar H10 device presented satisfactory quality, even when participants were performing intense body movement. To reduce the baseline wander and high-frequency content of the signal without affecting the QRS complex, we applied the DWT/IDWT denoising method. Figure 5 contains an example of the filtered ECG signal with peaks detected by the Pan–Tompkins algorithm as well as the filtered PPG signal with peaks detected by the AMPD, PDA, and SSF algorithms. The time shift between the R peaks in ECG and systolic peaks in PPG, caused by the pulse transit time, is roughly constant throughout the whole experiment. Moreover, the systolic peaks are located right behind the T wave, which indicates the signals were appropriately synchronized and the sampling frequencies were correctly calculated.
The comparison of HRV obtained from the ECG signal (with the Pan–Tompkins algorithm) and PRVs from the PPG signal (with the AMPD, PDA, SSF algorithms) before and after signal processing is presented in Figure 6. It can be noted that filtering removed outliers in both ECG and PPG signals and improved the correlation between HRV and PRV obtained from two source signals. It is also visible in Figure 7 that PRVs post-processing improved their frequency content compared to the HRV spectra.
More detailed results are available in Table 2. It can be seen that for “static” experiments (NoMove and Light), PRVs obtained from the PPGs are very similar to HRVs obtained from the ECGs even without additional signal processing—similarity measures (RRMSE and DTW) have values lower than 3.6% and 4.9, respectively, and the Pearson correlation coefficient is close to 1. For experiments with movements (Tap and Arm), the PRV and HRV signals derived from the PPG and the ECG differ significantly. The proposed signal filtering helped to obtain more proper PRV from the PPG in such a case, although the Pearson correlation coefficient was still at the 0.62–0.77 level. For the Breath experiment, the similarity of the PRV and HRV from the PPG and ECG is rather satisfactory, achieving r > 0.85.
We noticed that for some participants, the HRVs similarity measures were significantly lower in case of a few experiments, i.e., P8 (participant no. 8) and P9 in the Breath experiment, P7 and P8 in the Arm experiment, and P5, P8, P9, and P10 in the Tap experiment. Since there are only a few cases like this, and the majority of them are related to the experiments introducing movement, we conclude these are outliers caused by insufficient adhesion of the sensor to the skin (loosely worn device). Table 3 contains the HRV and PRV similarity measures with the outliers removed. Compared to Table 2, it can be seen that the obtained results for all “dynamic” experiments demonstrate a clear improvement, particularly for the Breath activity (reduction of the RRMSE by about 75%). Additionally, we performed a statistical paired Student’s t-test with the 5% significance level for the PRV data to check for differences in the performance of the PRV extraction algorithms. It stems that the SSF indicates more errors in the Tap and Arm experiments than other algorithms.
To determine the computational complexity, we measured the execution time of each PRV algorithm applied to the same signal fragment lasting five minutes. The computation was repeated ten times. On average, the AMPD required 20.6 s to process the signal fragment and provide peaks, whereas it took only 0.08 s for the SSF and 0.01 for the PDA algorithm to compute the results.

4. Discussion

4.1. Novelty of This Study

The primary aim of this study was to propose a procedure for reducing artifacts caused by various factors induced during the planned experiments based solely on the PPG signal. Particular attention was paid to improving the accuracy of PRV derived from the PPG compared to HRV derived from the concurrent ECG. It referred to maintaining its frequency content, as this is the main feature used in subsequent analyses. The PSDs presented in Figure 7 show similar frequency characteristics of both HRV and PPG, especially in the case of experiments with less artifacts, lower frequencies, and after post-processing. Our methodology is in contrast to the most popular approaches [12,15,24,33,35,36,37,39,42,66], since it does not require the use of any sensor other than the PPG.
Experiments included in this study were of various types, some of them replicating the ones in papers mentioned in the Introduction. We focused our research on their potentially progressive impact on PPG quality to successively deal with new artifacts. Most of the articles published until now have included baseline measurements and controlled arm movements, typically lasting 1 min or less [21,24,25,26,36], or 5 min [19,20,22,24,34,67,67], and rarely longer than 5 min [23,35]. The advantage of our study was that each activity lasted at least 5 min, and sessions of 5 and 7 h of continuous monitoring were also included. Very often, experiment protocols in the more complex cases described in the literature contained at least 1 min of rest to restore a normal heart rate. Due to the arrangement of the experiments according to their intensity and their division into three sessions, the breaks in the laboratory sessions were shortened to 20 s, but in the complex experiments (running and everyday life session), they remained 1 min.
In studies carried out by others, the ambient light was not changed, especially cyclically, compared to our experiments conducted as Light. The exception is [40], where changes in the light entering the detector were examined with the 3D-printed rings for the smartwatches with and without holes to change the amount of light falling on the sensor, and this caused a deterioration in the quality of the reading. In research on breathing artifacts [22,34], the methods for monitoring respiratory rhythm were not provided, while in this study, a sine wave of a specific frequency was displayed, which makes it easy to repeat this protocol by others in the future.
The decision to temporarily set aside data related to the treadmill and everyday life in this first approach to the analysis of the collected experimental results is associated with the observed relationship of the induced artifacts to the rhythm of steps and their overlapping with the heartbeat, so that their reduction without an additional signal such as ACC (also recorded during the experiments) seems to be unlikely. On the other hand, due to the measurements of PPG on different parts of the body presented in the literature [68], differences in possible artifacts should be taken into account. The finger PPG is much less susceptible to motion artifacts than the wrist due to the more stationary nature of the measurement [69].

4.2. Justification of the Methods

Some previous publications [6,50] compared the Polar H10 to Holter’s devices, which are recognized as the gold standard in ECG measurements and are still considered the best approach for determining the R-R intervals during basic activities. However, they might be not suitable for high-intensity activities. It was shown in these papers that Polar H10 is comparably accurate with even better quality of the recorded signal at intense activities with strong body movements. While it is typical to use in research the R-R intervals calculated by the H10 device itself, we decided to independently derive HRVs from the collected ECGs (see Section 2.3), as it had been shown that the embedded firmware can return an HRV signal with some uncontrolled errors due to missed or mis-detected R-peaks [6]. For the above reasons, HRVs derived from the ECG signals recorded by Polar H10 were considered an appropriate reference for our study. Both raw ECG and PPG signals were upsampled to 1 Hz by spline interpolation, which theoretically guarantees a 1 ms resolution of derived HRV and PRV values. However, such R-peak or pulse position accuracy cannot actually be expected, because the original sampling rates (130 and 25 Hz, respectively) together with additional filtering by the DWT/IDWT limited the spectra and therefore also modulated the waveform shapes. On the other hand, the sampling rate of 250 Hz (i.e., 4 ms interval) has been shown to be acceptable in HRV frequency-domain analyses [70]; therefore, it can be anticipated that the above-mentioned factors will not cause this 4 ms inaccuracy to be exceeded.
Artifact removal with DWT/IDWT is one of the methods based on signal decomposition, which is often used interchangeably with empirical mode decomposition (EMD) [15]. However, the main advantage of DWT is that the decomposed coefficients correspond to specific frequency ranges in contrast to the intrinsic mode functions obtained from EMD. This makes it easier to choose which coefficients contain unwanted artifacts. The DWT/IDWT works as a more advanced band-pass filter, which has proven to be very efficient at removing the slow components visible in Figure 4a,b as well as high-frequency noise. For a different sampling frequency of the signal, however, the frequency ranges of the individual coefficients also change, which should be borne in mind depending on a specific application.
One of the motion-related artifacts is the amplitude modulation of the PPG, which is undoubtedly a nonlinear process. There are some other papers that have dealt with this problem, for example in order to train a neural network [30] or for noise cancellation and SpO2 estimation [71]. An alternative to determining the envelope by means of the Hilbert transform used in this study is, for instance, computing a local value of the standard deviation or the RMS of the signal [72]. Either way, the main benefit of amplitude demodulation is better preparation of the PPG to determine the duration of pulse cycles as well as reducing the impact of some other artifacts. However, another effect of demodulation is also the loss of useful information contained in amplitude changes and related to physiological processes, such as respiratory rate [73]. However, when using the PPG signal only to determine PRV, it is not essential.

4.3. Significance of the Results

Three algorithms were used to derive the PRV waveforms from the PPGs, which differ significantly in the way they determine the duration of pulse cycles. The first difference noticed is the computational effort: the most greedy is the AMPD, then SSF, and the fastest is PDA because of its simplicity. On the other hand, the AMPD algorithm is convenient to use due to the lack of hyper-parameters and no restrictions on the frequency of the tested signal. The most influential factor in the results between used algorithms was the selection of appropriate hyper-parameter values. As shown in Figure 4d and Figure 5, each of the algorithms allowed for the effective determination of the PRV waveforms from the processed PPG signal.
Looking at the post-processing effects, significant improvements can be seen in the resulting PRV quality measures, as shown in Table 2 and Table 3. Post-processing improved the results primarily in the more complex experiments, such as Tap and Arm, but it sometimes worsened slightly in simple cases, such as Light. This is mainly due to the effect of the AR model, because when it operates on a very good quality PPG signal, then sometimes, the correct PRV values are replaced by the prediction outcomes. This leads to the conclusion that post-processing in the proposed form should be applied more in the situations of observed strong artifacts than in motionless laboratory experiments. Nevertheless, it improves the PRV spectra compared to HRV (Figure 3). It is worth adding here that the further optimization of post-processing algorithms’ hyper-parameters is still possible, which may bring even better results. Moreover, it was observed that the best results of applying the AR model were obtained when the beginning of the PRV waveforms were determined without distortions, so that the prediction of subsequent samples was much more accurate and the changed values were more relevant, additionally allowing the algorithm to work properly after sliding the window.
The best mRRMS scores (2.5% in Table 2 and Table 3) were obtained in the “static” measurements during the Light experiment, which is interesting because they are better than for the NoMove experiment. This indicates that changes in ambient light have not affected the performance of the algorithms. On the other hand, the worst outcomes are for the Tap experiments (Table 2 and Table 3). This is mainly because the strong tapping introduced notably erroneous peaks into the PPG signal. This is especially visible when comparing these results with the NoMove experiments, as the only difference between them is tapping. Several times higher values of the dissimilarity metrics between HRVs and PRVs presented in the tables indicate a sharp deterioration in the peak detection accuracy caused by tapping, because the PRV signals are constructed directly from the peaks determined by the three tested algorithms. In addition, the intense arm movements affected blood flow in the limb through neural regulation and change in blood pressure [74,75], modulating the amplitude of PPG. Fortunately, the amplitude was successfully demodulated (Figure 4), and other such additive artifacts can be removed by adaptive filters using an additional ACC signal [24,36,66], and moreover, strong tapping in a smartwatch is rare. After the rejection of outlier subjects (Table 3), it can be seen that much better results have been achieved for the Tap and Arm and especially Breath experiments, while the outcomes for the “static” activities remain unchanged. Large discrepancies in results for different people may indicate differences in the strength of the sensor’s attachment to the body, which becomes particularly significant during movements. Therefore, only the results of the “dynamic” experiments have improved after the outliers rejection. An additional conclusion is that a personalization approach to each participant should be considered.
From the statistical tests performed regarding the methods for extracting PRV from PPG (Table 2 and Table 3), the differences on the 5% significance level are seen only in the “dynamic” experiments (Tap and Arm) and are associated mainly with the SSF algorithm. For the rest of the experiments, no significant differences were noted, which shows that the AMPD, SSF, and PDA algorithms can be used interchangeably and do not significantly affect the resulting PRV for non-complex lab measurements. It is worth adding that the statistical tests marked in Table 2 indicate a smaller number of significant differences between the methods than for the subjects without outliers presented in Table 3.
An important element of this work was the verification of the quality of PRVs extracted from PPG in comparison with reference HRVs derived from ECG. This comparison is problematic as the two original waveforms often have different lengths due to artifacts affecting the PPG analyzing algorithms. This means that it is difficult to apply benchmarks that require the same amount of data to be compared, such as Pearson’s correlation, which is very often used in research but usually ignored when assessing the raw PRVs and HRVs, or the signals are locally averaged over time to HRs and only then compared. The approaches used in this study that are known from the literature, i.e., DTW, allowed comparing two fully corresponding signals represented, however, by a different number of samples. Spline interpolation resulted in uniform sampling, which successfully solved this problem.

4.4. Limitations of This Work

However, this study also has some limitations. The proposed methodology, focusing on using only the PPG signal, resolved the problem of deriving PRV in the presence of artifacts only to a certain extent. It should be taken into account that for measurements in everyday life scenarios, artifacts in PPG affecting the correctness of PRV determination will be visible even during the spontaneous arm or body movement, and these will increase in the case of more intense activities. These effects have been well illustrated in experiments with regular tapping on the smartwatch or arm movements (Table 2 and Table 3). In everyday life, random taps are rather rare but can introduce false peaks into the PPG signal, disrupting PRV locally. On the contrary, frequent movements of an arm or body are typical of activities during the day; therefore, problems with PRV derivation similar to those found in the Arm experiments are to be expected. It is different at night, when body movements are infrequent and happen irregularly.
The fact that the reduction of artifacts was restricted to PPG processing only, without the use of other sensors such as an accelerometer or gyroscope, resulted in the abandonment of the analysis of signals from the treadmill or everyday life, even though they were recorded at the experimental stage. Nevertheless, in this study, it was possible to check how much the quality of PRV can be improved without the use of additional signals, and thus, it will be useful in moving to the second stage of research on the currently omitted recordings.
There are also some shortcomings related to the selection of hyper-parameter values, which could be conducted more precisely with a greater amount of work, as well as with the selection of wavelets in the DWT/IDWT method, where it is worth carefully checking which of them have the greatest impact on improving the results.
Regarding the dataset, the signals collected from the Empatica E4 and during the treadmill and everyday life sessions were not analyzed in this article for reasons explained earlier. However, it is worth emphasizing here that those rich in content data are to be used in the next stage of our research for the additional optimization of some signal processing procedures, especially after supplementing them with methods that also employ ACC signals. Another limitation concerns the number of participants, which was just 11, including mostly male subjects of a similar age. Future experiments should involve more volunteers with greater diversity. The above facts prove that although the current solution improves the quality of PRV, it is still not quite sufficient for application in everyday life scenarios.

5. Conclusions

The main contribution of this article is to show the effective chain of procedures for processing the PPG signal from a smartwatch to eliminate artifacts without the use of any additional sensors, e.g., an accelerometer. The PPG signal is usually of poor quality, which is mainly due to the susceptibility to motion artifacts. Therefore, their reduction allows improving the quality of the extracted PRV with attention to its frequency content, which is crucial in its further analyses. Discrete wavelet transform and its inverse, followed by amplitude demodulation, enable the proper preparation of the PPG signal for the use of PRV extraction algorithms. In the tests, the SSF gave statistically more errors than the PDA or AMPD algorithms. It was found that the correction of outliers based on local statistical measures is only important when PPG is of low quality, and it has no effect under good signal quality. The same conclusion applies to post-processing using the AR model. The biggest problem turned out to be the interference from tapping the smartwatch and vigorous hand movements, which introduced additional peaks and modulation of the PPG amplitude. This suggests that it would be beneficial to use other information to further reduce such artifacts. For example, accelerometer signals can be utilized for that purpose. Nevertheless, our proposed procedures coped well with the artifacts in the remaining cases examined. Summarizing, the accuracy measures gathered in Table 2 and Table 3 (and especially the r coefficient) indicate that PRV derived solely from the PPG without the use of other sensors appears to be a reasonable alternative to HRV at rest, but it is unreliable, even after post-processing, during exercise.
Future work will mainly focus on the further studies on the impact of the PPG amplitude demodulation methods on the quality of the derived PRV. Additionally, the application of appropriate methods (including the nonlinear ones) exploiting the accelerometer signal will be investigated. This should allow for the efficient analysis of the results also from the treadmill and then from the everyday life records divided into nighttime and daytime activities.

Author Contributions

Conceptualization, A.G.P., B.K., S.S. and P.K.; methodology, A.G.P. and B.K.; software, A.G.P. and B.K.; validation, A.G.P. and B.K.; formal analysis, A.G.P. and B.K.; investigation, B.K.; resources, B.K. and S.S.; data curation, A.G.P. and B.K.; writing—original draft preparation, A.G.P., B.K., S.S., M.A.P. and P.K.; writing—review and editing, A.G.P., B.K., S.S., M.A.P. and P.K.; visualization, B.K. and M.A.P.; supervision, A.G.P., S.S. and P.K.; project administration, S.S.; funding acquisition, P.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially supported by the National Science Centre, Poland, project no. 2020/37/B/ST6/03806; by the statutory funds of the Department of Artificial Intelligence, Wroclaw University of Science and Technology; by the Polish Ministry of Education and Science—the CLARIN-PL Project.

Institutional Review Board Statement

The study was conducted according to the guidelines of the Declaration of Helsinki and the ethical guidelines provided by the National Science Centre in Poland, and approved by the Bioethics Committee at the Medical University of Wroclaw (KB–149/2020, 8 April 2020).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The data presented in this study are available on reasonable request from the corresponding author. The data are not publicly available due to ethical constraints.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gautam, D.D.; Giri, V. Analysis of HRV signal for disease diagnosis. In Proceedings of the 2016 11th International Conference on Industrial and Information Systems (ICIIS), Roorkee, India, 3–4 December 2016; pp. 639–643. [Google Scholar]
  2. Mejía-Mejía, E.; May, J.M.; Torres, R.; Kyriacou, P.A. Pulse rate variability in cardiovascular health: A review on its applications and relationship with heart rate variability. Physiol. Meas. 2020, 41, 894–901. [Google Scholar] [CrossRef] [PubMed]
  3. Rawal, K.; Sethi, G.; Saini, B.S.; Saini, I. HRV: A Powerful Tool in Medical Diagnosis. In Global Developments in Healthcare and Medical Tourism; IGI Global: Hershey, PA, USA, 2020; pp. 236–264. [Google Scholar]
  4. Adamczyk, K.; Polak, A.G. Comparison of multiband filtering, empirical mode decomposition and short-time Fourier transform used to extract physiological components from long-term heart rate variability. Metrol. Meas. Syst. 2021, 28, 643–660. [Google Scholar]
  5. Guzik, P.; Malik, M. ECG by mobile technologies. J. Electrocardiol. 2016, 49, 894–901. [Google Scholar] [CrossRef]
  6. Gilgen-Ammann, R.; Schweizer, T.; Wyss, T. RR interval signal quality of a heart rate monitor and an ECG Holter at rest and during exercise. Eur. J. Appl. Physiol. 2019, 119, 1525–1532. [Google Scholar] [CrossRef] [PubMed]
  7. Saganowski, S.; Kazienko, P.; Dzieżyc, M.; Jakimów, P.; Komoszyńska, J.; Michalska, W.; Dutkowiak, A.; Polak, A.; Dziadek, A.; Ujma, M. Consumer Wearables and Affective Computing for Wellbeing Support. In Proceedings of the 17th EAI International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services, Darmstadt, Germany, 7–9 December 2020. [Google Scholar]
  8. Saganowski, S.; Behnke, M.; Komoszyńska, J.; Kunc, D.; Perz, B.; Kazienko, P. A system for collecting emotionally annotated physiological signals in daily life using wearables. In Proceedings of the 2021 9th International Conference on Affective Computing and Intelligent Interaction Workshops and Demos (ACIIW), Nara, Japan, 28 September–1 October 2021; pp. 1–3. [Google Scholar]
  9. Saganowski, S. Bringing Emotion Recognition out of the Lab into Real Life: Recent Advances in Sensors and Machine Learning. Electronics 2022, 11, 496. [Google Scholar] [CrossRef]
  10. Saganowski, S.; Kunc, D.; Perz, B.; Komoszyńska, J.; Behnke, M.; Kazienko, P. The cold start problem and per-group personalization in real-life emotion recognition with wearables. In Proceedings of the 2022 IEEE International Conference on Pervasive Computing and Communications Workshops and other Affiliated Events (PerCom Workshops), Pisa, Italy, 21–25 March 2022; pp. 812–817. [Google Scholar]
  11. Saganowski, S.; Perz, B.; Polak, A.; Kazienko, P. Emotion Recognition for Everyday Life Using Physiological Signals from Wearables: A Systematic Literature Review. IEEE Trans. Affect. Comput. 2022. [Google Scholar] [CrossRef]
  12. Periyasamy, V.; Pramanik, M.; Ghosh, P.K. Review on heart-rate estimation from photoplethysmography and accelerometer signals during physical exercise. J. Indian. Inst. Sci. 2017, 97, 313–324. [Google Scholar] [CrossRef]
  13. Biswas, D.; Simões-Capela, N.; Van Hoof, C.; Van Helleputte, N. Heart rate estimation from wrist-worn photoplethysmography: A review. IEEE Sens. J. 2019, 19, 6560–6570. [Google Scholar] [CrossRef]
  14. Pollreisz, D.; TaheriNejad, N. Detection and removal of motion artifacts in PPG signals. Mob. Netw. Appl. 2019, 27, 728–738. [Google Scholar] [CrossRef]
  15. Ismail, S.; Akram, U.; Siddiqi, I. Heart rate tracking in photoplethysmography signals affected by motion artifacts: A review. EURASIP J. Adv. Signal. Process. 2021, 5. [Google Scholar] [CrossRef]
  16. Kumar, A.; Komaragiri, R.; Kumar, M. A review on computation methods used in photoplethysmography signal analysis for heart rate estimation. Arch. Comput. Methods. Eng. 2022, 29, 921–940. [Google Scholar]
  17. Prabakaran, A.; Rufus, E. Review on the wearable health-care monitoring system with robust motion artifacts reduction techniques. Sens. Rev. 2022, 42, 19–38. [Google Scholar] [CrossRef]
  18. Moraes, J.L.; Rocha, M.X.; Vasconcelos, G.G.; Vasconcelos Filho, J.E.; de Albuquerque, V.H.C.; Alexandria, A.R. Advances in Photopletysmography Signal Analysis for Biomedical Applications. Sensors 2018, 18, 1894. [Google Scholar] [CrossRef] [PubMed]
  19. Salehizadeh, S.; Dao, D.K.; Chong, J.W.; McManus, D.; Darling, C.; Mendelson, Y.; Chon, K.H. Photoplethysmograph signal reconstruction based on a novel motion artifact detection-reduction approach. Part II: Motion and noise artifact removal. Ann. Biomed. Eng. 2014, 42, 2251–2263. [Google Scholar] [CrossRef] [PubMed]
  20. Sinchai, S.; Kainan, P.; Wardkein, P.; Koseeyaporn, J. A photoplethysmographic signal isolated from an additive motion artifact by frequency translation. IEEE Trans. Biomed. Circuits Syst. 2018, 12, 904–917. [Google Scholar] [CrossRef] [PubMed]
  21. Liu, X.; Hu, Q.; Yuan, H.; Yang, C. Motion artifact detection in ppg signals based on gramian angular field and 2-d-cnn. In Proceedings of the 2020 13th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Chengdu, China, 17–19 October 2020; pp. 743–747. [Google Scholar]
  22. Mejía-Mejía, E.; May, J.M.; Kyriacou, P.A. Effect of Filtering of Photoplethysmography Signals in Pulse Rate Variability Analysis. In Proceedings of the 2021 43rd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Virtual, 1–5 November 2021; pp. 5500–5503. [Google Scholar]
  23. Morresi, N.; Casaccia, S.; Sorcinelli, M.; Arnesano, M.; Revel, G.M. Analysing performances of Heart Rate Variability measurement through a smartwatch. In Proceedings of the 2020 IEEE International Symposium on Medical Measurements and Applications (MeMeA), Bari, Italy, 1 June–1 July 2020; pp. 1–6. [Google Scholar]
  24. Han, H.; Kim, J. Artifacts in wearable photoplethysmographs during daily life motions and their reduction with least mean square based active noise cancellation method. Comput. Biol. Med. 2012, 42, 387–393. [Google Scholar] [CrossRef]
  25. Peng, F.; Liu, H.; Wang, W. A comb filter based signal processing method to effectively reduce motion artifacts from photoplethysmographic signals. Physiol. Meas. 2015, 36, 2159. [Google Scholar] [CrossRef]
  26. Tăuţan, A.M.; Young, A.; Wentink, E.; Wieringa, F. Characterization and reduction of motion artifacts in photoplethysmographic signals from a wrist-worn device. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 6146–6149. [Google Scholar]
  27. Lin, W.J.; Ma, H.P. A physiological information extraction method based on wearable PPG sensors with motion artifact removal. In Proceedings of the 2016 IEEE International Conference on Communications (ICC), Kuala Lumpur, Malaysia, 22–27 May 2016; pp. 1–6. [Google Scholar]
  28. Raghuram, M.; Sivani, K.; Reddy, K.A. Use of complex EMD generated noise reference for adaptive reduction of motion artifacts from PPG signals. In Proceedings of the 2016 International Conference on Electrical, Electronics, and Optimization Techniques (ICEEOT), Chennai, India, 3–5 March 2016; pp. 1816–1820. [Google Scholar]
  29. Luke, A.; Shaji, S.; Menon, K.U. Motion artifact removal and feature extraction from ppg signals using efficient signal processing algorithms. In Proceedings of the 2018 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Bangalore, India, 19–22 September 2018; pp. 624–630. [Google Scholar]
  30. Xu, K.; Jiang, X.; Chen, W. Photoplethysmography motion artifacts removal based on signal-noise interaction modeling utilizing envelope filtering and time-delay neural network. IEEE Sens. J. 2019, 20, 3732–3744. [Google Scholar] [CrossRef]
  31. Xu, K.; Jiang, X.; Ren, H.; Liu, X.; Chen, W. Deep recurrent neural network for extracting pulse rate variability from photoplethysmography during strenuous physical exercise. In Proceedings of the 2019 IEEE Biomedical Circuits and Systems Conference (BioCAS), Nara, Japan, 17–19 October 2019; pp. 1–4. [Google Scholar]
  32. Xu, K.; Jiang, X.; Lin, S.; Dai, C.; Chen, W. Stochastic modeling based nonlinear Bayesian filtering for photoplethysmography denoising in wearable devices. IEEE Trans. Industr. Inform. 2020, 16, 7219–7230. [Google Scholar] [CrossRef]
  33. Hasan, M.A.; Thiyab, M.N.; Keream, S.S.; Salaman, U.H.; Abid, K.W. An evaluation of the accelerometer output as a motion artifact signal during photoplethysmograph signal processing control. Indones J. Electr. Eng. Comput. Sci. 2020, 20, 125–131. [Google Scholar]
  34. Jan, H.Y.; Chen, M.F.; Fu, T.C.; Lin, W.C.; Tsai, C.L.; Lin, K.P. Evaluation of coherence between ECG and PPG derived parameters on heart rate variability and respiration in healthy volunteers with/without controlled breathing. J. Med. Biol. Eng. 2019, 39, 783–795. [Google Scholar] [CrossRef]
  35. Jarchi, D.; Casson, A.J. Estimation of heart rate from foot worn photoplethysmography sensors during fast bike exercise. In Proceedings of the 2016 38th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Orlando, FL, USA, 16–20 August 2016; pp. 2158–3155. [Google Scholar]
  36. Welhenge, A.; Taparugssanagorn, A.; Raez, C. Performance Comparison of Variants of LMS Algorithms for Motion Artifact Removal in PPG Signals During Physical Activities. Biomed. J. Sci. Tech. Res. 2019, 14. [Google Scholar]
  37. Casson, A.J.; Galvez, A.V.; Jarchi, D. Gyroscope vs. accelerometer measurements of motion from wrist PPG during physical exercise. ICT Express 2016, 2, 175–179. [Google Scholar] [CrossRef]
  38. Weinschenk, S.W.; Beise, R.D.; Lorenz, J. Heart rate variability (HRV) in deep breathing tests and 5-min short-term recordings: Agreement of ear photoplethysmography with ECG measurements, in 343 subjects. Eur. J. Appl. Physiol. 2016, 116, 1527–1535. [Google Scholar] [CrossRef]
  39. Hara, S.; Shimazaki, T.; Okuhata, H.; Nakamura, H.; Kawabata, T.; Cai, K.; Takubo, T. Parameter optimization of motion artifact canceling PPG-based heart rate sensor by means of cross validation. In Proceedings of the 2017 11th International Symposium on Medical Information and Communication Technology (ISMICT), Lisbon, Portugal, 6–8 February 2017; pp. 73–76. [Google Scholar]
  40. Ra, H.K.; Ahn, J.; Yoon, H.J.; Yoon, D.; Son, S.H.; Ko, J. I am a “smart” watch, smart enough to know the accuracy of my own heart rate sensor. In Proceedings of the 18th International Workshop on Mobile Computing Systems and Applications, Sonoma, CA, USA, 21–22 February 2017; pp. 49–54. [Google Scholar]
  41. Weiler, D.T.; Villajuan, S.O.; Edkins, L.; Cleary, S.; Saleem, J.J. Wearable heart rate monitor technology accuracy in research: A comparative study between PPG and ECG technology. Proc. Hum. Factors Ergon. Soc. Annu. Meet. 2017, 61, 1292–1296. [Google Scholar] [CrossRef]
  42. Lee, H.; Chung, H.; Lee, J. Motion artifact cancellation in wearable photoplethysmography using gyroscope. IEEE Sens. J. 2018, 19, 1166–1175. [Google Scholar] [CrossRef]
  43. de Pinho Ferreira, N.; Gehin, C.; Massot, B. Ambient light contribution as a reference for motion artefacts reduction in photoplethysmography. In Proceedings of the 13th International Conference on Biomedical Electronics and Devices, Valletta, Malta, 24–26 February 2020; SCITEPRESS-Science and Technology Publications: Setubal, Portugal, 2020; pp. 23–32. [Google Scholar]
  44. Bellenger, C.R.; Miller, D.; Halson, S.L.; Roach, G.; Sargent, C. Wrist-based photoplethysmography assessment of heart rate and heart rate variability: Validation of WHOOP. Sensors 2021, 21, 3571. [Google Scholar] [CrossRef]
  45. Chattopadhyay, S.; Das, R. Comparing heart rate variability with polar H10 sensor and pulse rate variability with LYFAS: A novel study. J. Biomed. Eng. Technol. 2021, 9, 1–9. [Google Scholar] [CrossRef]
  46. Umair, M.; Chalabianloo, N.; Sas, C.; Ersoy, C. HRV and Stress: A Mixed-Methods Approach for Comparison of Wearable Heart Rate Sensors for Biofeedback. IEEE Access 2021, 9, 14005–14024. [Google Scholar] [CrossRef]
  47. Wijshoff, R.W.; Mischi, M.; Aarts, R.M. Reduction of periodic motion artifacts in photoplethysmography. IEEE Trans. Biomed. Eng 2017, 64, 196–207. [Google Scholar] [CrossRef]
  48. Morresi, N.; Casaccia, S.; Revel, G.M. Metrological characterization and signal processing of a wearable sensor for the measurement of heart rate variability. In Proceedings of the 2021 IEEE International Symposium on Medical Measurements and Applications (MeMeA), Lausanne, Switzerland, 23–25 June 2021; pp. 1–6. [Google Scholar]
  49. Lam, E.; Aratia, S.; Wang, J.; Tung, J. Measuring heart rate variability in free-living conditions using consumer-grade photoplethysmography: Validation study. JMIR Biomed. Eng. 2020, 5, e17355. [Google Scholar] [CrossRef]
  50. Hinde, K.; White, G.; Armstrong, N. Wearable devices suitable for monitoring twenty four hour heart rate variability in military populations. Sensors 2021, 21, 1061. [Google Scholar] [CrossRef] [PubMed]
  51. Merry, R.; Steinbuch, M. Wavelet Theory and Applications; Literature Study; Control Systems Technology Group, Department of Mechanical Engineering, Eindhoven University of Technology: Eindhoven, The Netherlands, 2005. [Google Scholar]
  52. Belkacem, S.; Messaoudi, N.; Dibi, Z. Wavelet families comparison for r-peaks detection in electrocardiogram signal. Bul. Inst. Politeh. Iași 2019, 65, 9–22. [Google Scholar]
  53. Pan, J.; Tompkins, W.J. A Real-Time QRS Detection Algorithm. IEEE Trans. Biomed. Eng. 1985, BME-32, 230–236. [Google Scholar] [CrossRef]
  54. Yadhuraj, S.; Sudarshan, B.; Prasanna Kumar, S.C. GUI creation for removal of motion artifact in PPG signals. In Proceedings of the 2016 3rd International Conference on Advanced Computing and Communication Systems (ICACCS), Coimbatore, India, 22–23 January 2016; Volume 1, pp. 1–5. [Google Scholar]
  55. Alian, A.A.; Shelley, K.H. Photoplethysmography. Best Pract. Res. Clin. 2014, 28, 395–406. [Google Scholar] [CrossRef]
  56. Billauer, E. Peakdet: Peak Detection Using MATLAB (Non-Derivative Local Extremum, Maximum, Minimum). 2009. Available online: http://billauer.co.il/blog/2009/01/peakdet-matlab-octave/ (accessed on 1 April 2022).
  57. Scholkmann, F.; Boss, J.; Wolf, M. An efficient algorithm for automatic peak detection in noisy periodic and quasi-periodic signals. Algorithms 2012, 5, 588–603. [Google Scholar] [CrossRef]
  58. Zong, W.; Heldt, T.; Moody, G.; Mark, R. An open-source algorithm to detect onset of arterial blood pressure pulses. In Proceedings of the Computers in Cardiology, Thessaloniki, Greece, 21–24 September 2003; pp. 259–262. [Google Scholar]
  59. Elgendi, M.; Norton, I.; Brearley, M.; Abbott, D.; Schuurmans, D. Systolic peak detection in acceleration photoplethysmograms measured from emergency responders in tropical conditions. PLoS ONE 2013, 8, e76585. [Google Scholar]
  60. Jang, D.G.; Park, S.; Hahn, M.; Park, S.H. A real-time pulse peak detection algorithm for the photoplethysmogram. Int. J. Eng. Res. Appl. 2014, 2, 45–49. [Google Scholar] [CrossRef]
  61. Sekiguchi, Y.; Adams, W.M.; Benjamin, C.L.; Curtis, R.M.; Giersch, G.E.; Casa, D.J. Relationships between resting heart rate, heart rate variability and sleep characteristics among female collegiate cross-country athletes. J. Sleep. Res. 2019, 28, e12836. [Google Scholar] [CrossRef]
  62. Nes, B.M.; Janszky, I.; Wisløff, U.; Støylen, A.; Karlsen, T. Age-predicted maximal heart rate in healthy subjects: The HUNT F itness S tudy. Scand. J. Med. Sci. Sports 2013, 23, 697–704. [Google Scholar] [CrossRef] [PubMed]
  63. Dantas, E.M.; Sant’Anna, M.L.; Andreão, R.V.; Goncalves, C.P.; Morra, E.A.; Baldo, M.P.; Rodrigues, S.L.; Mill, J.G. Spectral analysis of heart rate variability with the autoregressive method: What model order to choose? Comput. Biol. Med. 2012, 42, 164–170. [Google Scholar] [CrossRef] [PubMed]
  64. Zhang, Q.; Zhou, D.; Zeng, X. A novel framework for motion-tolerant instantaneous heart rate estimation by phase-domain multiview dynamic time warping. IEEE Trans. Biomed. Eng. 2017, 64, 2562–2574. [Google Scholar]
  65. Jiang, Y.; Qi, Y.; Wang, W.K.; Bent, B.; Avram, R.; Olgin, J.; Dunn, J. EventDTW: An improved dynamic time warping algorithm for aligning biomedical signals of nonuniform sampling frequencies. Sensors 2020, 20, 2700. [Google Scholar] [CrossRef]
  66. Ye, Y.; Cheng, Y.; He, W.; Hou, M.; Zhang, Z. Combining nonlinear adaptive filtering and signal decomposition for motion artifact removal in wearable photoplethysmography. IEEE Sens. J. 2016, 16, 7133–7141. [Google Scholar] [CrossRef]
  67. Nuuttila, O.P.; Korhonen, E.; Laukkanen, J.; Kyröläinen, H. Validity of the Wrist-Worn Polar Vantage V2 to Measure Heart Rate and Heart Rate Variability at Rest. Sensors 2021, 22, 137. [Google Scholar] [CrossRef] [PubMed]
  68. Castaneda, D.; Esparza, A.; Ghamari, M.; Soltanpur, C.; Nazeran, H. A review on wearable photoplethysmography sensors and their potential future applications in health care. Int. J. Biosens. Bioelectron. 2018, 4, 195. [Google Scholar]
  69. Nardelli, M.; Vanello, N.; Galperti, G.; Greco, A.; Scilingo, E.P. Assessing the Quality of Heart Rate Variability Estimated from Wrist and Finger PPG: A Novel Approach Based on Cross-Mapping Method. Sensors 2020, 20, 3156. [Google Scholar] [CrossRef] [PubMed]
  70. Kwon, O.; Jeong, J.; Kim, H.B.; Kwon, I.H.; Park, S.Y.; Kim, J.E.; Choi, Y. Electrocardiogram sampling frequency range acceptable for heart rate variability analysis. Healthc. Inf. Res. 2018, 24, 198–206. [Google Scholar] [CrossRef]
  71. Yuan, H.; Memon, S.F.; Newe, T.; Lewis, E.; Leen, G. Motion artefact minimization from photoplethysmography based non-invasive hemoglobin sensor based on an envelope filtering algorithm. Measurement 2018, 115, 288–298. [Google Scholar] [CrossRef]
  72. Sepúlveda-Cano, L.M.; Gil, E.; Laguna, P.; Castellanos-Dominguez, G. Sleep apnoea detection in children using PPG envelope-based dynamic features. In Proceedings of the 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Boston, MA, USA, 30 August–3 September 2011; pp. 1483–1486. [Google Scholar]
  73. Charlton, P.H.; Birrenkott, D.A.; Bonnici, T.; Pimentel, M.A.; Johnson, A.E.; Alastruey, J.; Tarassenko, L.; Watkinson, P.J.; Beale, R.; Clifton, D.A. Breathing rate estimation from the electrocardiogram and photoplethysmogram: A review. IEEE Rev. Biomed. Eng. 2017, 11, 2–20. [Google Scholar] [CrossRef]
  74. Thomas, G.D.; Segal, S.S. Neural control of muscle blood flow during exercise. J. Appl. Physiol. 2004, 97, 731–738. [Google Scholar] [CrossRef] [PubMed]
  75. Mourad, A.; Carney, S.; Gillies, A.; Jones, B.; Nanra, R.; Trevillian, P. Arm position and blood pressure: A risk factor for hypertension? J. Hum. Hypertens. 2003, 17, 389–395. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Experimental protocols for data collection. Only laboratory sessions were deeply analyzed in this paper.
Figure 1. Experimental protocols for data collection. Only laboratory sessions were deeply analyzed in this paper.
Sensors 22 07047 g001
Figure 2. ECG and PPG processing flows. ECG is used as a reference to validate our new PPG processing method (blocks with thicker frames).
Figure 2. ECG and PPG processing flows. ECG is used as a reference to validate our new PPG processing method (blocks with thicker frames).
Sensors 22 07047 g002
Figure 3. Raw PPG signals collected by the Samsung Watch 3 during the analyzed experiments together with their power spectral densities (PSD, lower-right panel), person P6. Colors of PPG signals are corresponding to their calculated PSDs.
Figure 3. Raw PPG signals collected by the Samsung Watch 3 during the analyzed experiments together with their power spectral densities (PSD, lower-right panel), person P6. Colors of PPG signals are corresponding to their calculated PSDs.
Sensors 22 07047 g003
Figure 4. Example of PPG signal filtering: (a) Raw PPG signal obtained from the Samsung device, (b) Signal filtered with the IDWT, (c) Results of amplitude modulation removal, (d) Example of detected peaks (red asterisks) with the AMPD algorithm. The Arm experiment, person P6.
Figure 4. Example of PPG signal filtering: (a) Raw PPG signal obtained from the Samsung device, (b) Signal filtered with the IDWT, (c) Results of amplitude modulation removal, (d) Example of detected peaks (red asterisks) with the AMPD algorithm. The Arm experiment, person P6.
Sensors 22 07047 g004
Figure 5. Visualization of peak detection in ECG and PPG signals. The Arm experiment, person P6.
Figure 5. Visualization of peak detection in ECG and PPG signals. The Arm experiment, person P6.
Sensors 22 07047 g005
Figure 6. Comparison of the HRV and PRV waveforms for each algorithm before (a) and after (b) post-processing. The Arm experiment, person P6.
Figure 6. Comparison of the HRV and PRV waveforms for each algorithm before (a) and after (b) post-processing. The Arm experiment, person P6.
Sensors 22 07047 g006
Figure 7. Comparison of the PSD of HRV and PRV before and after post-processing from the (a) NoMove and (b) Arm experiments, person P6.
Figure 7. Comparison of the PSD of HRV and PRV before and after post-processing from the (a) NoMove and (b) Arm experiments, person P6.
Sensors 22 07047 g007
Table 1. Measurement protocol with the activity clusters, task descriptions and task durations.
Table 1. Measurement protocol with the activity clusters, task descriptions and task durations.
TaskDescriptionDuration [min]
NoMoveSitting freely on a chair with hands resting on the table5
LightChanging the main room lighting every 10 s, participants position as before5
TapRepeated finger tapping a Samsung in relation to the metronome rhythm5
ArmRaise arm to a vertical position above yourself (10 s) and lower it parallel to the desk (10 s)5
BreathControlled very slow/fast breathing, 5/30 bpm determined by the displayed sine wave5
WalkTreadmill speed 1 km/h5
MarchTreadmill speed 5 km/h5
RunTreadmill speed 9 km/h5
Daily lifeDevice worn during the day, various activities≈420
SleepingDevice worn before going to bed, overnight, monitoring participant sleep≈420
Table 2. Similarity measures of HRVs and PRVs obtained from simultaneous ECG and PPG (averaged over ALL subjects): RRMSE—relative RMSE before AR modeling, RRMSEar—relative RMSE after AR modeling, DTWp—Dynamic Time Warping before entire post-processing, DTWs—Dynamic Time Warping after outliers correction, r—Pearson’s correlation coefficient after entire post-processing. The symbols #, *, or ¶ indicate that a given value is statistically smaller than for PDA, AMPD, and SSF, respectively, verified with the Student’s t-test at the 5% significance level.
Table 2. Similarity measures of HRVs and PRVs obtained from simultaneous ECG and PPG (averaged over ALL subjects): RRMSE—relative RMSE before AR modeling, RRMSEar—relative RMSE after AR modeling, DTWp—Dynamic Time Warping before entire post-processing, DTWs—Dynamic Time Warping after outliers correction, r—Pearson’s correlation coefficient after entire post-processing. The symbols #, *, or ¶ indicate that a given value is statistically smaller than for PDA, AMPD, and SSF, respectively, verified with the Student’s t-test at the 5% significance level.
MeasurePRV AlgorithmExperiments: ALL Subjects (Mean ± SD)
NoMoveLightTapArmBreath
RRMSE (%)PDA2.9 ± 1.62.6 ± 1.722.5 ± 11.217.7 ± 10.324.4 ± 22.0
AMPD3.4 ± 2.12.5 ± 1.523.4 ± 12.820.0 ± 13.326.9 ± 23.7
SSF3.6 ± 2.22.7 ± 1.822.9 ± 9.618.4 ± 10.423.7 ± 21.2
RRMSEar (%)PDA2.9 ± 1.03.3 ± 1.521.5 ± 11.315.9 ± 9.523.4 ± 21.1
AMPD3.1 ± 1.33.1 ± 1.422.1 ± 12.618.9 ± 12.926.2 ± 23.0
SSF3.3 ± 1.33.1 ± 1.421.5 ± 9.816.0 ± 9.222.9 ± 20.6
DTWpPDA3.8 ± 2.14.5 ± 2.638.9 ± 14.832.5 ± 18.328.2 ± 21.8
AMPD3.5 ± 1.64.5 ± 2.537.5 ± 19.232.7 ± 18.831.0 ± 24.3
SSF4.7 ± 3.14.9 ± 3.042.2 ± 13.332.3 ± 17.529.4 ± 22.9
DTWsPDA3.3 ± 1.33.7 ± 1.536.2 ± 15.824.8 ± 12.923.7 ± 18.2
AMPD3.6 ± 1.63.7 ± 1.534.8 ± 17.725.4 ± 14.024.5 ± 18.7
SSF3.9 ± 2.04.1 ± 2.037.5 ± 13.025.8 ± 13.423.4 ± 17.9
rPDA0.96 ± 0.050.95 ± 0.060.66 ± 0.160.75 ± 0.15 *0.87 ± 0.15
AMPD0.96 ± 0.050.96 ± 0.050.67 ± 0.140.77 ± 0.130.87 ± 0.18
SSF0.95 ± 0.050.95 ± 0.070.65 ± 0.160.74 ± 0.15 *,#0.85 ± 0.19
Table 3. Similarity measures of HRVs and PRVs obtained from simultaneous ECG and PPG (averaged over SELECTED subjects): RRMSE—relative RMSE before AR modeling, RRMSEar—relative RMSE after AR modeling, DTWp—Dynamic Time Warping before entire post-processing, DTWs—Dynamic Time Warping after outliers correction, r—Pearson’s correlation coefficient after entire post-processing. The symbols #, *, or ¶ indicate that a given value is statistically smaller than for PDA, AMPD, and SSF, respectively, verified with the Student’s t-test at the 5% significance level.
Table 3. Similarity measures of HRVs and PRVs obtained from simultaneous ECG and PPG (averaged over SELECTED subjects): RRMSE—relative RMSE before AR modeling, RRMSEar—relative RMSE after AR modeling, DTWp—Dynamic Time Warping before entire post-processing, DTWs—Dynamic Time Warping after outliers correction, r—Pearson’s correlation coefficient after entire post-processing. The symbols #, *, or ¶ indicate that a given value is statistically smaller than for PDA, AMPD, and SSF, respectively, verified with the Student’s t-test at the 5% significance level.
MeasurePRV AlgorithmExperiments: SELECTED Subjects (Mean ± SD)
NoMoveLightTapArmBreath
RRMSE (%)PDA2.9 ± 1.62.6 ± 1.713.8 ± 5.6 11.1 ± 4.24.8 ± 3.8
AMPD3.4 ± 2.12.5 ± 1.513.1 ± 6.110.7 ± 3.99.2 ± 8.3
SSF3.6 ± 2.22.7 ± 1.816.1 ± 4.811.9 ± 4.15.4 ± 4.2
RRMSEar (%)PDA2.9 ± 1.03.3 ± 1.512.3 ± 4.9 9.8 ± 3.83.9 ± 2.4
AMPD3.1 ± 1.33.1 ± 1.411.7 ± 5.49.7 ± 3.87.5 ± 6.3
SSF3.3 ± 1.33.1 ± 1.414.3 ± 4.210.3 ± 4.03.9 ± 2.0
DTWpPDA3.8 ± 2.14.5 ± 2.630.5 ± 11.2 21.7 ± 8.612.2 ± 7.6
AMPD3.5 ± 1.64.5 ± 2.523.0 ± 8.821.4 ± 8.713.1 ± 8.7
SSF4.7 ± 3.14.9 ± 3.037.4 ± 13.622.4 ± 9.212.5 ± 7.9
DTWsPDA3.3 ± 1.33.7 ± 1.525.4 ± 9.417.4 ± 6.2 10.5 ± 6.3
AMPD3.6 ± 1.63.7 ± 1.521.3 ± 8.3#,¶16.9 ± 6.011.0 ± 6.8
SSF3.9 ± 2.04.1 ± 2.030.9 ± 11.218.1 ± 6.510.4 ± 6.1
rPDA0.96 ± 0.050.95 ± 0.060.64 ± 0.20.78 ± 0.150.92 ± 0.11
AMPD0.96 ± 0.050.96 ± 0.050.66 ± 0.160.79 ± 0.140.92 ± 0.09
SSF0.95 ± 0.050.95 ± 0.070.63 ± 0.190.77 ± 0.14 *0.91 ± 0.12
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Polak, A.G.; Klich, B.; Saganowski, S.; Prucnal, M.A.; Kazienko, P. Processing Photoplethysmograms Recorded by Smartwatches to Improve the Quality of Derived Pulse Rate Variability. Sensors 2022, 22, 7047. https://doi.org/10.3390/s22187047

AMA Style

Polak AG, Klich B, Saganowski S, Prucnal MA, Kazienko P. Processing Photoplethysmograms Recorded by Smartwatches to Improve the Quality of Derived Pulse Rate Variability. Sensors. 2022; 22(18):7047. https://doi.org/10.3390/s22187047

Chicago/Turabian Style

Polak, Adam G., Bartłomiej Klich, Stanisław Saganowski, Monika A. Prucnal, and Przemysław Kazienko. 2022. "Processing Photoplethysmograms Recorded by Smartwatches to Improve the Quality of Derived Pulse Rate Variability" Sensors 22, no. 18: 7047. https://doi.org/10.3390/s22187047

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop