Simple maths formula can predict when artificial intelligence is about to give dangerous responses, researchers say ...