Sort a bank of ECG samples to 2 groups
Show older comments
Hey,
I've a bank of 2 types of ECG samples: link, some of them were measured while exercising and some while resting
all the samples are 5 seconds long, and were measured at 1k[Hz] frequency
I'm having a hard time develop an algorithem to sort that bank to 2 groups (exercising and resting)
any ideas?
3 Comments
Star Strider
on 6 Jan 2023
I rarely go to external sites to download data. Providiing that the size is within the limits to upload them here, use ths zip function to consolidate them into one file and then upload the .zip file.
Classifying them would likely be on the basis of heart rate and possibly R-deflection amplitude. Both of those should be higher in the exercising EKGs than resting EKGs, if on the same subjects.
Portalboi
on 6 Jan 2023
Portalboi
on 7 Jan 2023
Accepted Answer
More Answers (1)
Vilém Frynta
on 6 Jan 2023
Edited: Vilém Frynta
on 6 Jan 2023
0 votes
Hello,
as Star Strider already mentioned, you can filter data based on the R-amplitude and or heart rate (time between R–R).
I have tried to plot your data and it seems there is quite a big difference in amplitudes, so it appears that it could be a reliable filter.
Also, I am not very confident whether this is valid option, but I tried to perform FFT on your data, and it looks like there might be a difference between resting ECG and excersing ECG. But it is possible that I have chosen some data that are "perfect" and this might not be the case for the rest of your data.
See images below;
== example 1 and it's FFT ==


== example 2 and it's FFT ==


Categories
Find more on Single-Rate Filters in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



