Automatic detection of fast ripples