Algorithm 3: Abnormal ECG morphology detection |
Input: Vector of ECG data points with amplitude, ECG data sampling rate, Heart rate, Set of referenced feature values, User defined constant to group k-cycles. Output: Detection of abnormal morphologies Notations: : Measured amplitude of X wave, : Measured duration of X wave, : Counter for X wave abnormal morphologies, where , : Counter for interval abnormal morphologies, : Measured duration of interval. 1 Initialize k; 2 Initialize ; 3 Estimate Cardiac cycle Length: ; 4 Calculate # of cardiac cycles: ; 5 for to do 6 j=i; 7 while j≤ do 8 if then 9 ; // P wave abnormal morphology detection 10 end 11 ; 12 if then 13 ; // wave abnormal morphology detection; 14 end 15 if then 16 ; // T wave abnormal morphology detection; 17 end 18 if then 19 ; // interval abnormal morphology detection; 20 end 21 end 22 endfor |