Beruflich Dokumente
Kultur Dokumente
METHODOLOGY
4.1 Introduction
The ANS functions can be studied by using HRV data of an individual is a well
known fact. The HRV analysis plays an important role in individuals with diabetes,
hypertension, physical fatigue, sleep apnea, coronary artery diseases and in addictions.
In the present work, stratification of subjects for HRV analysis has been done. It
was based on age, number of years of addiction (alcohol, smoking, stress). Age group
selected was basically young population (17 to 23 yrs.) as the identification in them helps
in prevention of diseases. A detailed questionnaire was administered to acquire the
personal information and consent was taken to analyze their ECG signals and
confidentiality was maintained.
In the present work, subjects selected age group between 17 to 23 years were
studied by stratifying the individuals based on the questionnaires administered for
acquiring patient data. Personal history consisted of;
I.
Name:
II.
Age:
III.
Sex:
IV.
Marital Status:
V.
Blood Group:
VI.
Height:
VII.
Weight:
VIII.
IX.
X.
XI.
XII.
XIII.
ECG
Electrodes
(3 Leads)
Bio-Amplifier
DAQ Card
6009
Computer
Preprocessing
Kubios
and peak
Software
detection using
Matlab
Figure 4.1: Block diagram used to analyze HRV by extractingsoftware
ECG
Analysis of
Heart Rate
Variability
The block diagram of methods used in the present work is shown in figure 4.1.
Here we have used 3 leads ECG electrodes for acquiring data and bio amplifiers are used
to amplify the signals and through DAQ the signals are obtained and it is filtered. The
peaks of the filtered signals were obtained and is fed to Kubios software for extracting
HRV parameters. The flow chart of the present work is as shown in figure 4.2.
4.3 Algorithm for HRV Analysis using ECG
Step1: Start
Step2: Acquire ECG data using three lead electrodes
Step3: Read the ECG data
Step4: Remove the artifact in the ECG signal
Step5: Plot the artifact reduced ECG signal using Matlab software
Step 6: Detect positive peaks of the data by comparing 3 successive samples when
The second data is higher with respect to the first and third data or the first
And second data are equal and higher than the third data checked
Step7: Copy the detected samples to peak array else check successive samples
Step8: Find the maximum peak value of peak array and set 70% of it as threshold
Value
Step9: If array value is less then threshold then load 0 in that respective samples
Step10: If peak value is greater than 0 then suppress next successive 20 arrays
Values to 0
Step11: Store the peak value in an array
Step12: Read the peak value array and extract it to Kubios Software tool
Step13: Perform Time-domain analysis and non-linear analysis
Step14: Read the statistical values which are available on the tool
Step15: Stop.
Have
read ECG
data for 5
minutes.
NO
YES
Kubios Software
software
Time domain,
Frequency domain and
non-linear analysis
results
Analysis of HRV
Stop
Figure 4.3: Flow chart for Extracting HRV parameters using ECG Signal
The obtained ECG signals are filtered and the peaks of the signals were detected.
The detected peak were saved such that it has read for five minutes and is loaded to
kubios software for extracting HRV parameters. The flow chart is shown in figure 4.3 for
extracting HRV parameters.
Start
Read ECG
data into an
array
B
a=file[i]-file [i-1], b=file[i+1]-file[i]
B
If(a>0)a
nd(b<0)
If(a==0)a
nd (b<0)
i=i+1
++1
YES
Peak [i]=file[i]
Peak[i]=0
If
I=length
(file)-1
Th=max (peak)*0.5
i-1
If peak
[i]<=Th
NO
YES
Peak [i]=0
i=i+1
N
O
If
i=length
(Peak)
YES
Plot peak
Stop
Figure 4.4: The flow chart for peak detection
The flow chart of the peak detection algorithm used in the present work is as shown in
Figure 4.4.
The ECG signals were taken in real time from individuals in the age group of
17-23 at RVCE Health center. The ECG signals were obtained by 3 lead ECG electrodes.
The obtained ECG data was acquired in Lab VIEW. The file was saved in .txt format and
.dat format which was read to the Matlab software.
The hearts electrical activity is obtained through ECG. ECG signals are acquired
mainly through two types namely invasive methods and noninvasive methods. Invasive
methods are accurate but are not pragmatic. Non invasive methods are popular and
commonly used while measuring ECG. In the present work three lead surface electrodes
have been used. The signal obtained will be corrupted by various noises like baseline
shifts, power line interference and motion artifacts. Hence processing of the signals is
very important before they are used for analysis. The base
Line wanderance in the ECG signal and its removal is showed in figure 4.5(a) and figure
4.5(b) respectively.
wanderance
baseline shift
Analysis of
Heart Rate
Variability
PPG
Sensor
Kubios
Software
Acquisition
of PPG
Signal
Pre
processing
and peak
detection in
Matlab
software
The block diagram of data acquisition and HRV analysis by using PPG signals is
shown in figure 4.9. PPG signals are taken from individual persons using bio kit at a
sample rate of 256 samples / second. The frequency response for PPG is 0.05-10Hz. It is
obtained by using reflection type PPG sensor, these signals are amplified using a PPG
amplifier and are interfaced with the PC using DAQ card 6009. The peaks of the PPG
signals are detected and the peaks are loaded to kubios software for HRV analysis.
4.6 Algorithm for HRV Analysis using PPG
Step1: Start
Step2: Acquire PPG data in Lab VIEW
Step3: Read the PPG data
Step4: Plot PPG data with artifacts in Matlab software
Step5: Remove the artifacts in the PPG signal
Step6: Plot the artifact free PPG signal
Step7: Detect positive peaks of the data by comparing 3 successive samples when the
Second data is higher with respect to the first and third data or first and second
data are equal and higher than the third data
Step8: Copy the detected samples to peak array else check successive samples
Step9: Find the maximum peak value of peak array and set 70% of it as threshold
value
Step10: If array value is less then threshold then load 0 in that respective samples
Step11: If peak value is greater than 0 then suppress next successive 20 array values
to 0
Step12: Store the peak value in an array
Step13: Read the peak value array and extract it to Kubios Software tool
Step14: Perform Time-domain analysis and non-linear analysis
Step15: Read the statistical values which are available on the tool
Step16: Stop.
4.6.1 Flow Chart of Present Study for HRV Analysis using PPG Signal
Start
Have
read 5
min.
data?
NO
YES
Kubios Software
software
Time domain,
Frequency domain and
non-linear results
Analysis of HRV
Stop
Figure 4.10: Flow chart for extracting HRV parameters with PPG Signals
The PPG signals are obtained and it is filtered. The filtered PPG signals peaks are
detected and by using Kubios software HRV parameters are obtained. The flow chart for
obtaining HRV parameters is as shown in figure 4.10.
Start
File=Read
PPG data
B
a=file[i]-file [i-1], b=file[i+1]-file[i]
B
If(a>0)a
nd(b<0)
If(a==0)a
nd (b<0)
i = i+1
YES
Peak [i]=file[i]
Peak[i]=0
If
I=length
(file)-1
Th=max (peak)*0.7
i-1
If peak
[i]<=Th
NO
YES
Peak [i]=0
i=i+1
N
O
If
i=length
(Peak)
YES
Plot peak
Stop
The flow chart for detection of peaks in PPG signals are shown in figure 4.11.
The PPG signals were taken in real time from individuals from age group of 17-23 years
at RVCE Health center. The PPG signals were obtained by fingered type reflective PPG
sensor. The obtained ECG data was acquired in Lab VIEW. The file was saved in .txt
format and .dat format which was read to the Matlab software.
The figureure 4.12 refers to the PPG signal which was corrupted by motion
artifact and motion artifact noise is reduced using SVD (Singular Value Decomposition).
The results showed that the SNR (Signal to Noise ratio) values of SVD were higher than
other filtering techniques. After removal of baseline drift, the motion artifact was
removed by using simple 200 orders moving average filter in Matlab Software. The
power line interference was removed by using notch filter. Figure 4.13 shows the
obtained PPG signals and the peaks in the PPG signals were obtained as shown in figure
4.14.
results of frequency domain. The frequency-domain results are shown in figure 4.16
Kubios Software is a user friendly tool for extracting HRV parameters. Also,
Kubios Software is an open source and its results are obtained with considerable accuracy
.Kubios Software assists for HRV analysis with both linear and nonlinear parameters, the
GUI in the software is designed such that it is simple and easily accessible. GUI includes
both the graphical representation and displayed values. When compared to other open
source software for HRV analysis Kubios Software tool was found to be much advanced.
The methodology mentioned above gives the algorithms, flowchart and GUIs of
the software used for the present study of HRV analysis. Kubios Software was found to
be advanced and sophisticated software compared to other open source softwares
available. Hence the above methodology was adopted for the present study.