We needn't fear: scientists are studying the risk of a robot uprising. Cambridge philosophy professor Huw Price explains how The Cambridge Project for Existential Risk aims to assess the threat:

"It tends to be regarded as a flakey concern, but given that we don't know how serious the risks are, that we don't know the time scale, dismissing the concerns is dangerous. What we're trying to do is to push it forward in the respectable scientific community," he said.

While Price said the exact nature of the risks is difficult to predict, he said that advanced technology could be a threat when computers start to direct resources towards their own goals, at the expense of human concerns like environmental sustainability.

Read more about the project on their website, and in the meantime you might want to start preparing for the inevitable.