Learning to scan the horizon