Artificial intelligence can help spot traces of natural selection