Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE only (Matlab) This assignment is about heart rate variability. PART1: You will calculate some time domain variables to see if there are differences in

USE only (Matlab)

This assignment is about heart rate variability.

PART1:

You will calculate some time domain variables to see if there are differences in terms of HRV between the conditions of the recorded ECGs. Sampling frequency of the recorded signals is 1000Hz.

Data contains 3 variables:

1. ecgREST: ECG recorded at rest,

2. ecgDURINGWATER: ECG recorded during drinking water,

3. ecgAFTERWATER: ECG recorded after drinking water.

Steps:

1) Load ECGdata.mat

2) Find the peaks (R)

3) Calculate time difference (RR or NN interval) between successive R peaks.

4) Plot the ECG signals (for the 3 ECG signals in the dataset) and show that you have correctly detected the R peaks.(Screen capture different time intervals: 5 or 6 intervals will be enough.)

5) Plot RR intervals (calculated from the 3 ECG signals in the dataset)

6) Copy these Matlab figures and paste them into Word document for submission.

7) Calculate NN50 and pNN50. Comment on the values.

Note: Dont forget to add a screen capture of the workspace. Variables and the sizes of the variables are important.

PART2:

In this part, RR intervals that you have calculated in Part1 for ECGs recorded at REST and AFTER DRINKING WATER will be used.

Steps:

1. Plot histograms of RR intervals. (2 histograms)

2. Find the number of elements inside the bins and the position of the bin centers.

3. Plot these bins with respect to the position of the bin centers.

4. Fit a linear polynomial to the increasing part of the plot in Step 3.

5. Calculate the values of this polynomial (y) for a range of t values (for example for t=700 to 1200)

6. Plot these values as a line on the plot of Step3.

7. Repeat Steps 4, 5, and 6 for the decreasing part of the plot in Step 3.

8. Find the points where these two linear polynomials (lines that fit the increasing and decreasing part of the plot in Step 3) cross the x-axis (or time axis). These points are N and M, respectively. Calculate M-N.

9. Remove the bins that contain number of elements less than 10% of the bin that contains the maximum number of elements.

10. Repeat Steps 3 to 9.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

In how many months will $8500 grow to $8818.75 at 5% p.a.?

Answered: 1 week ago

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago