Artificial intelligence can rapidly analyse events, pick out the threats, and even create and implement a response.