Patent ID: 8175709

Claim:
A system for heart monitoring comprising: an intracardiac electrocardiogram IEGM input for an IEGM; an active filtering stage, wherein said IEGM input is connected to said active filtering stage; a filter characterization stage, wherein said active filtering stage is connected to said filter characterization stage; wherein said filter characterization stage is configured to process a patient specific IEGM template that is recorded at least partially at a previous time and a corresponding surface electrocardiogram SECG template that was also recorded at least partially at said previous time wherein said filter characterization stage is configured to resample said SEGC template if necessary to ensure said SEGC template matches a sampling frequency of said IEGM template and remove direct current DC offset of said IEGM and SECG templates if said direct current DC offset exists in either of said IEGM and SECG templates and identify fiducial points of said IEGM and SECG templates to locate a P wave peak and an R wave peak and align a fiducial point in said IEGM with a corresponding fiducial point in said SECG at a programmable delay to account for phase delay between IEGM and SECG to match pairs of IEGM and SECG templates based on respective fiducial points and adjust said IEGM and SECG templates to have a same length; wherein said filter characterization stage is further configured to adapt filter characteristics of said active filtering stage such that said filter characteristics best characterize an input-output relationship between said patient specific IEGM template and said corresponding SECG template; and, wherein said active filtering stage is configured to transform an incoming IEGM into an output electrocardiogram ECG signal, such that the output ECG signal closely resembles a morphology of a corresponding SECG as a consequence of adaptation of the filter characteristics by the filter characterization stage.