The present invention introduces a method, device and a computer program for removing artifacts present in individual channels of a multichannel measurement device. At first, a basis is generated defining an n-dimensional subspace of the N-dimensional signal space, where n is smaller than N, where using in the definition of the n-dimensional basis a physical model of a Signal Space Separation method, or a statistical model based on the statistics of recorded N-dimensional signals. Thereafter, a combined (n+m)-dimensional basis is formed by adding m signal vectors to the n-dimensional basis, each of these m signal vectors representing a signal present only in a single channel of the N-channel device. After this the recorded N-dimensional signal vector is decomposed into n+m components in the combined basis, and finally, components corresponding to the m added vectors in the combined basis are subtracted from the recorded N-dimensional signal vector.