International audienceWe consider the problem of building a standard electrocardiogram (ECG) from the electrical potential provided by a pacemaker in a few points of the heart (electrogram). We use a 3D mathematical model of the heart and the torso electrical activity, able to generate "computational ECG", and a "metamodel" based on a kernel ridge regression. The input of the metamodel is the electrogram, its output is the ECG. The 3D model is used to train and test the metamodel. We illustrate the performance of the proposed strategy on simulated bundle branch blocks of various severities and a few clinical dat