Selected HRV features for extraction.
Heart rate variability (HRV) is a physiological measurement that can help to monitor and diagnose chronic diseases such as cardiovascular disease, depression, and psychological stress. HRV measurement is commonly extracted from the electrocardiography (ECG). However, ECG has bulky wires where it needs at least three surface electrodes to be placed on the skin. This may cause distraction during the recording and need longer time to setup. Therefore, photoplethysmography (PPG), a simple optical technique, was suggested to obtain heart rate. This study proposes to investigate the effectiveness of PPG recording and derivation of HRV for feature analysis. The PPG signal was preprocessed to remove all the noise and to extract the HRV. HRV features were collected using time-domain analysis (TA), frequency-domain analysis (FA) and nonlinear time-frequency analysis (TFA). Five out of 22 HRV features, which are HR, RMSSD, LF/HF, LFnu, and HFnu, showed high correlation (rho > 0.6 and prho < 0.05) in comparison to standard 5-min excerpt while producing significant difference (p-value < 0.05) during the stressing condition across all interval HRV excerpts. This simple yet accurate PPG recording system perhaps might useful to assess the HRV signal in a short time, and further can be used for the ANS assessment.
- autonomic function
Human body is interacting between each other where it consists of many different interacting systems. Any changes in human body will generate response to all parts of the body include the autonomic nervous system (ANS) . ANS controls the system that regulates bodily functions such as the digestion, respiratory rate, heart rate, pupillary response, urination, and sexual arousal. Any changes in ANS can be detected by heart rate variability (HRV) since HRV and ANS is directly related.
Heart rate can be defined as the number of heart beats per minute while heart rate variability (HRV) is the fluctuation in the time intervals between adjacent heartbeats. HRV refers to the time series of the interval variation between consecutive heart beats and it can be analyzed in time, frequency and nonlinear domains . The fluctuations in HRV value reflects neurocardiac function of the body as it is generated through heart-brain connection and autonomic nervous system (ANS) dynamics [3, 4].
HRV is a common measurement that can be extracted from the physiological measurement and helps to monitor the psychological stress . It is because, HRV has direct connection with the autonomic nervous system (ANS) where any changes that occurred in human body can be directly detected by the HRV. The common methods to get the HRV are by using the ECG. However, there are several difficulties to record the ECG signal. First, it requires at least three surface electrodes to be placed on the skin to get single lead channel . This clearly shows bulky of wires are needed for the recording and might cause distraction and uncomfortable feeling to the patient. Furthermore, it requires several times to set up the ECG before start the recording.
In deriving the HRV signal, appropriate QRS algorithms need to be applied to detect the peaks and its R wave, to obtain the interval of RR, and to find acceptable interpolation and resampling to produce a consistently sampled tachogram. By using the ECG signal, the resultant HRV could have several errors in the HRV signal due to drift, electromagnetic and biological disturbance, and the complicated morphology of the ECG signal .
Therefore, a simple recording system in deriving the HRV signal is needed. PPG which is an electro-optical technique that detect the changes of blood volume in the microvascular bed of the tissue is believed able to overcome the problem that faced by ECG signal and has been suggested as an alternative method to derive the HRV signal .
The PPG sensor’s system is equipped with a light source and a detector, it also developed with red and infrared (IR) light-emitting diodes (LEDs) that commonly used as the light source. The light intensity of the PPG sensor monitor has been changed via the reflection from or transmission through the tissue. Figure 1 shows the signal from ECG and PPG signal. Derivation HRV signal from ECG is calculated from R-R interval, while the calculation of HRV signal from PPG signal is used inter-beat interval (IBI) or pulse interval (PPI) .
The light traveling through biological tissue passes many materials, including pigments in the skin, bone, and arterial and venous blood. The changes of blood flow mainly occur in the arteries and arterioles (but not in the veins). For example, during the systolic phase of the cardiac cycle, the arteries contain more blood volume than the diastolic phase. PPG sensors optically detect changes in the blood flow volume, for instance, changes in the detected light intensity in the microvascular bed of tissue through the reflection from or transmission through the tissue .
As previously discussed, both ECG and PPG system are able to provide information on cardiovascular activities. While ECG system allow better depiction of real cardiac movement through the measurement of the electrical signals produced by the action potential of the tissue, PPG allow adequate cardiovascular measurements such as heart rate and cardiac output only through pulsatile flow of blood in the arteries. Several studies have shown that the cardiovascular parameters collected through PPG systems are highly correlative and comparable to the measurements taken through standard ECG system [8, 10, 11]. This proves that despite not being able to illustrate exact cardiac waveforms or ectopic beats, PPG could serve as better alternative for portable heart monitoring device.
In terms of measurement accuracy, there are several factors to be considered to ensure the reliability of data collection. Topographical factor such as position of sensor placement on the body plays an important factor since different area of the body constitutes different accuracy of perfusion readings. The most accurate perfusion readings are recorded in earlobe; however, the wrist does allow perfusion readings with appropriate accuracy . PPG watch is not subjected to electrical interference and drying or dropping-off of electrodes .
Therefore, this study proposes a PPG recording system for heart rate variability measurement that can be further used for mental stress assessment.
ECG and PPG signal has been collected from 12 healthy subjects randomly selected with no prior symptoms of autonomic or cardiovascular disorder, ages between 20 and 30 years old. The data was collected with duration of 30 min including 10 min of adjustment, 10 min of rest (baseline) and 10 min of mental arithmetic testing. As a type of mental stress test, participants were needed to conduct an internet arithmetic test for 10 min in order to evaluate HRV under stress conditions such as time constraint. Lead II ECG setup with three electrodes were placed on the skin of the subject. For PPG signal, the wristband was placed on the left wrist. The subject was asked to sit down and make sure they are familiarized with the procedure. The ECG and PPG were recorded simultaneously after device was setup. The data was imported to the MATLAB software for the signal processing (Figure 2).
2.1 Signal processing
The recorded PPG and ECG signals were then pre-processed to extract the HRV using MATLAB software (Figure 3).
2.1.1 HRV derived using PPG
The PPG signal began with the band pass filter to attenuate noises contained in the signals. The band-pass filter was made of cascaded lowpass and high-pass filters. The cut-off frequencies that have been used 5 and 11 Hz. The low pass filter (LPF) eliminates the noise from other part of body, such as the muscle noise and also 50 Hz power line noise. The high pass filter (HPF) which is used to remove the motion artifacts .
After that, the PPG signal undergo the slope sum function (SSF). This method is to enhance the systolic peak of the PPG pulse and to suppress the balance of the pressure waveform by using equation in Eq. (1) .
where w and sk are the length of the analyzing window and the filtered PPG signal, respectively. The SSF algorithm initialize the localization of the onset and offset of SSF then the pulse peak is identified as the local maxima within the range. The SSF signal produced coincides completely with the PPG pulse onset and offset and the pulse peaks appeared within the range of SSF pulse .
2.1.2 HRV derived using ECG
For ECG processing, Pan and Tompkins algorithm was implemented to get the HRV signal . The Pan and Tompkins procedure are more complex as ECG signal contains superimposition of several waves (P, QRS, and T waves) as seen in Figure 3 . After initial denoising using BPF, the waveform undergoes differentiation process to obtain slope information overcome baseline drift. The next step is to perform signal squaring to emphasize higher frequency signal components (QRS waves) while attenuating components of low frequency. Resultant signal obtained through the squaring phase was then smoothed using moving average filter with a moving window integrator at 80 ms. A thresholding process is required to ensure that only the true QRS complex detected and the adaptive thresholds have been set for the classification of the locations of the detected R points.
The N-N interval was then computed and outliers presented in the signal was removed. Some of the data segment loss through the outlier extraction method was substituted by a new data segment using a linear interpolation method that resulted in NN intervals with nonequivalent moment sampling. However, the use of irregularly sampled NN intervals during HRV analysis characteristics such as frequency and TF analysis would cause generation of additional harmonic components and artifacts in (Figure 4) .
Therefore, the HRV signals were resampled at standard sampling frequency of 4 Hz . Finally, the NN interval was passed through detrending process to overcome irregular trends.
2.2 HRV feature extraction
|Processing method||HRV features||No. of features|
|Time analysis||HR, SDNN, SDANN, RMSSD, HTI, NN50, pNN50||7|
|Frequency analysis||VLF, LF, HF, LF/HF, LFnu, HFnu, TP||7|
|Nonlinear analysis||Shannon entropy: LF, HF, LF/HF, Total(O); Renyi entropy: LF, HF, LF/HF, Total(O)||8|
2.2.1 Time-domain features
In this study, the time domain has been analyzed from HRV signal. Besides that, HRV features were extracted which are standard deviation of the normal-to-normal intervals (SDNN), standard deviation of the average of normal-to-normal intervals (SDANN) and root mean square successive difference (RMSSD). SDNN, SDANN and RMSSD were calculated by using equations in Eq. (2), Eq. (3) and Eq. (4) respectively.
where N is total window length and NN is normal-to-normal time interval.
where N5 is 5 min window length and NN is normal-to-normal time interval.
where N is total window length.
2.2.2 Frequency-domain features
For this research, AR using the Burg estimation technique has been used to optimize forward and backward prediction errors. The power spectrum of the AR technique using the Burg estimation can be calculated as follows,
where êp represents the sum of both forward and backward prediction errors or the total least square error while p denotes the model order and â (l) indicate pth order of the AR coefficient.
2.2.3 Nonlinear time-frequency features
Nonlinear analysis was performed using Modified B-distribution (MBD) as the technique is capable of providing high resolution TF distribution without cross-terms for HRV analysis. . The kernel for the MBD as follows,
where Γ defines as gamma function and β is a real positive number between 0 and 1 that regulates the trade-off between component resolution and cross-cutting elimination.
2.3 Multiscale HRV comparison and correlation analysis
In order to investigate the statistical significance (p-value < 0.05), Spearman’s correlation is conducted between HRV features of multiple length under both resting and stress conditions. It is performed to determine the correlation between the HRV features produced through PPG signal in comparing with standardized ECG signal. A nonparametric Wilcoxon signed-rank test was performed to observe the difference between resting (baseline) and arithmetic stress test.
3. Result and discussion
This chapter presented the results obtained through pre-processing, feature extraction of HRV and multiscale comparison and correlation analysis along with relevant discussions of the findings.
3.1 Signal processing
3.1.1 HRV derived using PPG
Figure 5 presented the attenuation of the PPG signal pulses after the application of the SSF conversion. The pulse peaks became more distinct throughout the entire signal duration using SSF conversion as lower ectopic beats were also amplified to match ordinary pulse peaks that facilitate peak detection during thresholding method. Figure 6 showed the resulting HRV signal that was obtained after removal, resampling and detrending of the outlier.
3.1.2 HRV derived using ECG
Figure 7 showed the changes in the ECG signal throughout the Pan and Tompkins algorithm processes. It can be seen that the algorithm was able to detect the R-R intervals throughout the signal excerpt. This method was chosen due to the simplicity and efficacy of this algorithm in QRS detection among adult subjects with 99.3% accuracy rate . The subsequent HRV signal produced (illustrated in Figure 8) after smoothing procedure was then used for feature analysis. Smoothing process which comprised of the outlier removal, resampling and detrending.
While evaluating the algorithm necessary for the HRV signal acquisition, it can be said that the pre-processing of the HRV signal recorded using the PPG system is simpler, as the signal contained only one type of wave (blood pulse) compared to the ECG signals usually containing a combination of three waves (P, QRS and T waves). Despite that, the HRV signal produced through both recordings do have relatively consistent magnitude.
3.2 HRV feature extraction
The analysis discussed in this section focuses mainly on the HRV features extracted using PPG method. Generally, the features selected have been associated with significant reactivity under stress conditions.
3.2.1 Time-domain features
The HRV signal obtained under resting and stress conditions were subsequently plotted in Figure 9 which also showed the HRV obtained with time excerpts of 10 min duration. In addition, different lengths of HRV excerpts carry different weightage of information on the HRV of the sample. Longer HRV excerpts allow better visualization of fluctuations in the HRV measurements in both conditions. However, it is difficult to distinguish the difference of HRV changes between resting and stress testing through visual inspection only.
3.2.2 Frequency-domain features
The PSD can be classified into three components which are VLF band between 0.0033 and 0.04 Hz, LF band between 0.04 and 0.15 Hz and HF band between 0.15 and 0.4 Hz .
Based on the findings in Figure 10, the LF components increases during stress testing while HF components relatively decreases.
3.2.3 Nonlinear time-frequency features
For the plotted Figure 11, it was observed that more complex changes experienced during stress testing in 10 min. TFD plot was able to provide supplementary visualization of more complex changes within the HRV features during stress phase. Next, the changes within VLF and LF frequency bands were also more noticeable in TFD analysis.
3.3 Multiscale HRV comparison and correlation analysis
Based on this finding, it can be seen that most of the HRV features extracted using the PPG device produced similar measurements as the ECG, especially for the TA and FA features. However, for more sophisticated measurements, such as nonlinear TF characteristics, the correlation between the two techniques was less important, particularly for smaller HRV characteristics. This could be due to the fact that PPG waveform mainly reflects the central artery properties which means factors such as artery stiffness may attenuate the signal and resulted in differences of NN intervals obtained between different individuals . The PPG signals are also influenced by other parasympathetic activity such as temperature variations  and could significantly changes due to factors such as body age, vascular age, physical status, sleeping hours, physical activities .
Correlation analysis was performed to assess the interdependence between PPG-derived HRV and ECG-derived HRV as shown in Table 2.
In general, HRV features resulted less correlated in resting than during stress conditions. This is most likely due to the fact that HRV showed a more depressed dynamic during stress phase. Other than that, HRV features such as HR, NN50, TP, VLF, LF, HF, Lfnu, Hfnu, LF/HF, and Renyi entropy (LF, HF and Total(O)) has also showed significant correlation between the values measured for HRV excerpts collected using PPG and ECG. This prove that PPG is able to produce HRV signal with equivalent significant to HRV signal produced by ECG during stress testing [8, 22]. Besides, it can be deduced that HR, RMSSD, LF/HF, Lfnu and Hfnu features showed consistent characteristics as valid surrogate of the standard HRV which means regardless of length of HRV signal (between 1 and 10 min), these features would produce values that high correlate to value produced with standard HRV excerpt.
This study intends to investigate if there is different length of HRV excerpts provide valid measurement of HRV indices with comparison to standard 5-min excerpt for detection of mental stress. Although many studies have shown that HRV analyzes provide a reliable quantification technique for mental stress, it is hard to compare the precision of each method as their experimental design (i.e., duration of HRV characteristics) differs. Although it was claimed that the excerpt of 5-min HRV is the
Despite that, the limitation of these analyses is that correlation coefficient is blind to the possibility of bias caused by the difference in the mean or standard deviation between two measurements .
In comparison to conventional ECG, a correlation assessment between HRV characteristics obtained by PPG was also performed to observe any variation between the extracted measurements and analyze whether the PPG system is sufficiently robust to obtain HRV characteristics according to clinical standards. For this research, an ultra-short and short-term HRV feature was presumed to be a valid surrogate of the equivalent standard HRV if the feature sustained at a high correlation (i.e., rho > 0.6 and prho < 0.05) with the equivalent 5-min standard feature over all time scales and produced consistent trend and significant difference (p-value < 0.05) during the rest and stress phase. Therefore, it can be deduced that HR, RMSSD, LF/HF, LFnu and HFnu features showed consistent characteristics as valid surrogate of the standard HRV which means regardless of length of HRV signal (between 1 and 10 min), these features would produce values that high correlate to value produced with standard HRV excerpt. In the future, methods such as machine learning may be applied to test the accuracy between the use different PPG specifications such as measurement site, probe contact force and LED wavelengths which affect the reliability of its recordings or between different experimental protocol such as type of stressor and subject conditions.
This study was supported by the Research University Funding from Universiti Teknologi Malaysia, Malaysia (FRGS: R.J130000.7851.5F219).
Munla N, Khalil M, Shahin A, Mourad A. Driver stress level detection using HRV analysis. In: International Conference on Advances in Biomedical Engineering, ICABME. 2015. pp. 61-64
Pecchia L, Castaldo R, Montesinos L, Melillo P. Are ultra-short heart rate variability features good surrogates of short-term ones? State-of-the-art review and recommendations. Healthcare Technology Letters. 2018; 5(3):94-100. DOI: 10.1049/htl.2017.0090
Thayer JF, Åhs F, Fredrikson M, Sollers JJ, Wager TD. A meta-analysis of heart rate variability and neuroimaging studies: Implications for heart rate variability as a marker of stress and health. Neuroscience & Biobehavioral Reviews. 2012; 36(2):747-756. DOI: 10.1016/j.neubiorev.2011.11.009
Mccraty R, Shaffer F. Heart rate variability: New perspectives on physiological mechanisms, assessment of self-regulatory capacity, and health risk. Global Advances in Health and Medicine. 2015; 4(1):46-61. DOI: 10.7453/gahmj.2014.073
Salahuddin L, Desok K. Detection of acute stress by heart rate variability using a prototype mobile ECG sensor. In: Proceedings - International Conference on Hybrid Information Technology, ICHIT, (November). 2006. pp. 1-25
Bolanos M, Nazeran H, Haltiwanger E. Comparison of heart rate variability signal features derived from electrocardiography and photoplethysmography in healthy individuals. In: Annual International Conference of the IEEE Engineering in Medicine and Biology - Proceedings. 2006. pp. 4289-4294
Peng RC, Zhou XL, Lin WH, Zhang YT. Extraction of heart rate variability from smartphone photoplethysmograms. Computational and Mathematical Methods in Medicine. 2015; 1:1-11. DOI: 10.1155/2015/516826
Selvaraj N, Jaryal A, Santhosh J, Deepak KK, Anand S. Assessment of heart rate variability derived from finger-tip photoplethysmography as compared to electrocardiography. Journal of Medical Engineering & Technology. 2008; 32(6):479-484. DOI: 10.1080/03091900701781317
Tamura T, Maeda Y, Sekine M, Yoshida M. Wearable photoplethysmographic sensors—Past and present. Electronics. 2014; 3(2):282-302. DOI: 10.3390/electronics3020282
Lu G, Yang F, Taylor JA, Stein JF. A comparison of photoplethysmography and ECG recording to analyse heart rate variability in healthy subjects. Journal of Medical Engineering & Technology. 2009; 33(8):634-641. DOI: 10.3109/03091900903150998
Gil E, Orini M, Bailón R, Vergara JM, Mainardi L, Laguna P. Photoplethysmography pulse rate variability as a surrogate measurement of heart rate variability during non-stationary conditions. Physiological Measurement. 2010; 31(9):1271-1290. DOI: 10.1088/0967-3334/31/9/015
Awodeyi AE, Alty SR, Ghavami M. On the filtering of photoplethysmography signals. In: IEEE International Conference on Bioinformatics and Bioengineering. 2014. pp. 175-178
Jang D, Park S, Hahn M, Park S. A real-time pulse peak detection algorithm for the photoplethysmogram. IEEE. 2014; 2(1):45-49. DOI: 10.12720/ijeee.2.1.45-49
Jang D-G, Farooq U, Park S-H, Hahn M. A robust method for pulse peak determination in a digital volume pulse waveform with a wandering baseline. IEEE Transactions on Biomedical Circuits and Systems. 2014; 8(5):729-737. DOI: 10.1109/TBCAS.2013.2295102
Pan J, Tompkins JW. A real-time QRS detection algorithm. IEEE Transactions on Biomedical Engineering. 1985; 32:230-236. DOI: 10.1109/TBME.1985.325532
Malarvili BK, Aimie S, Pranshul S. In: Ismail I, editor. Introduction to ECG Signal Processing using MATLAB. 1st ed. Johor Bahru, Malaysia: Penerbit UTM Press; 2018
Chen H-K, Hu Y-F, Lin S-F. Methodological considerations in calculating heart rate variability based on wearable device heart rate samples. Computers in Biology and Medicine. 2018; 102:396-401. DOI: 10.1016/j.compbiomed.2018.08.023
Malik M, Thomas Bigger J, John Camm A, Kleiger RE, Malliani A, Moss AJ, et al. Heart rate variability: Standards of measurement, physiological interpretation, and clinical use. European Heart Journal. 1996; 17:354-381. DOI: 10.1093/oxfordjournals.eurheartj.a014868
Elgendi M. On the analysis of fingertip photoplethysmogram signals. Current Cardiology Reviews. 2012; 8(1):14-25. DOI: 10.2174/157340312801215782
Heyman F, Ahlberg N-E. Effect of rapid distension of large arteries and veins on the vascular tone of the fingers. Acta Medica Scandinavica. 2009; 183(1–6):337-340. DOI: 10.1111/j.0954-6820.1968.tb10487.x
Moraes J, Rocha M, Vasconcelos G, Vasconcelos Filho J, de Albuquerque V, Alexandria A. Advances in photopletysmography signal analysis for biomedical applications. Sensors. 2018; 18(6):1894. DOI: 10.3390/s18061894
Chang FC, Chang CK, Chiu C, Hsu SF, Lin YD. Variations of HRV analysis in different approaches. In: 2007 Computers in Cardiology; IEEE. 2007. pp. 17-20
Castaldo R, Melillo P, Bracale U, Caserta M, Triassi M, Pecchia L. Acute mental stress assessment via short term HRV analysis in healthy adults: A systematic review with meta-analysis. Biomedical Signal Processing and Control. 2015, 2015; 18:370-377. DOI: 10.1016/j.bspc.2015.02.012