How artificial intelligence outmanoeuvred the superbugs