Research Article

An Improved Sliding Window Area Method for T Wave Detection

Algorithm 1

Traditional SWA algorithm (T wave onset detection).
Input: ECG signal , R peak locations, R peak numbers N, sliding window width , smoothing factor p, and morphology predefined factor r
Output: T wave onset locations
Calculation:
(1) Calculate t1 and t2 and construct sliding window
 window = 
(2) Smooth signal and calculate sliding area for each point i inside [t1, t2]
(3)T wave morphology classification
 if
 calculate
 end if
 if
 calculate
 end if
(4) Get k
Output: T wave onset = R peak + k.