This makes me think of the end of the 2004 adaptation of “I, Robot”.