Disclosed herein is a framework for facilitating patient signal analysis. In accordance with one aspect, the framework performs affine template matching of a region of interest from patient signal data with a baseline signal portion by performing an affine waveform transformation of the region of interest. One or more affine ratios may be determined based on the matched region of interest and the baseline signal portion for generating a report or diagnosis of a cardiac event.