People watching a robot being beaten felt similar emotions as when they watched a human apparently being abused. Sophie Bushwick reports