The present invention relates to an active medical device that uses non-linear filtering for reconstructing a surface electrocardiogram from an endocardial electrogram. At least one endocardial EGM electrogram signal is collected from of samples collected from at least one endocardial or epicardial derivation (71′, 72′, 73′), and at least one of a reconstructed surface electrocardiogram (ECG) signal through the processing of collected EGM samples by a transfer function (TF) of a neural network (60′). The neural network (60′) is a time-delay-type network that simultaneously processes said at least one endocardial EGM electrogram signal, formed by a first sequence of collected samples, and at least one delayed version of this EGM signal, formed by a second sequence of collected samples distinct from the first sequence collected samples. The neural network (60′) provides said reconstructed ECG signal from the EGM signal and its delayed version.