A few days ago I watched two surprisingly good movies on a similar topic -- how human future might be entangled with artificially intelligent robots. The first, Ex Machina, has a typically Hollywoodian feel to it -- a totally implausible general setting and story-line, which reeks of idiocy. A genius programmer with a major hipster beard and a sweet tooth for booze living alone in a futuristic mansion in the middle of a vast wilderness invents and builds, apparently all by himself, artificially intelligent super human like and sexy robots (of course they would be female -- he has to use them as sex dolls as well), one of which eventually rocks the show. Yet it is still watchable and raises some interesting questions about the nature and intentions of artificial intelligence and how it could relate to humans. The second, Automata, is surprisingly good and believable both in terms of setting and story-line. It is set a couple of decades into the future, when most of our planet has become uninhabitable, human population has dramatically shrunk and is still deteriorating and there are rather simple and clumsy, but good intentioned robots everywhere that were created to help humans out in all sorts of ways. And then some of them start to develop consciousness and the ability to improve themselves.
I do not want to mention the story-lines more, just some of the thoughts that these movies invoked, especially Automata.