Learning to Detect