How machine learning could be the key to an autonomous future