A system for heart monitoring comprises an IEGM input for an intracardiac electrocardiogram (IEGM) that is connected to an active filtering stage that is adapted to transform an incoming IEGM into an output ECG signal. The active filtering stage is connected to a filter characterization stage that is adapted to process a recorded, patient specific IEGM template and a corresponding SECG template and to adapt the filter characteristics of said active filtering stage such that the filter characteristics best characterize the input-output relationship between the IEGM template and the corresponding SECG template. As a consequence, the active filtering stage is adapted to transform an incoming IEGM such that the output ECG signal closely resembles a morphology of a corresponding SECG.