Samsung's patent document describes a tiny sensing loop around the hole in the screen that can detect small cracks.