auto bad trial detection