Machine that chooses whether to make you bleed sparks fears over a robot uprising