Artifact detection in a signal deserves a separate study in its own right.
in SumTimE we are initially using a median filter and an impossible value filter developed in our collaborator project NEONATE.