1. A method for detecting an artifact in a signal, the method comprising: transforming the signal using a continuous wavelet transform to generate a transformed signal; generating a wavelet scalogram based, at least in part, on the transformed signal; determining energy within a predefined moving area of the wavelet scalogram; comparing the determined energy within the predefined moving area of the wavelet scalogram to a threshold value; and masking at least one area of artifact in the wavelet scalogram based, at least in part, on the comparison.