Scratch recognition