Block diagram showing the Novel algorithm process. The Max grad segment refers to the 30 millisecond segment starting from the time of maximum gradient measured on the pre-filtered T wave downslope. Step A describes smoothing of the raw signal and calculation of Max grad. Step B is the iteration or looping of the algorithm as described in the text. LP is low Pass filter. Step C is the generation of a filtered signal with best fit between its Max grad and that of the smoothed signal. Step D is the overlapping between the isoelectric TP baseline segments of the signal generated in C and its inverted counterpart.