Artificial intelligence predicts which planetary systems will survive