Create algorithm for detection of local minima and maximums of QRS complex of ECG signal and test the results on the MIT-BIH Arrhythmia Database.
Download the ECG signal from MIT-BIH Arrhythmia database available from [login to view URL], record 100 ([login to view URL]).
When loading the record into matlab to get the physical units from raw data from signal remove base and gain (provided in [login to view URL] file) or use the rdmat function.
load('[login to view URL]')
Create new code (use the provided as a reference or to check additional information) or to the provided code add the detection of local minima and add thresholds for minima. Additionally, improve current code by changing thresholds after each new detected maximum as well as the minimum (threshold for the minima).
Signal duration is 10s and intervals can be in the period of 2s or 1s.
Fs (Sampling rate) is 360Hz (36 Samples -> 100ms).
For threshold take 10 samples, for each new R peak detected, the code/algorithm should discard last and add the new one (to change the threshold).
The frequency shift can be 0,7 and on that interval, we can find Min and Max. In case that on two intervals (2 ) there isn't any Max or Min detected, we activate lower thresholds (for minima and maximums). While going through the signal, check if the adjacent minima are distant more than 60ms and maximums more than 200ms.
Plot (show) all detected minimums and maximums on the signal. Using green color show 'primary maximums' and blue 'secondary' maximums.
The most important part of the work would be checking algorithm at MIT BIH database to determine the accuracy of the results or just compare the results (locations) that algorithm provided with these below.