Often portrayed negatively in the media, Artificial Intelligence is an innovation that can be a force for good - as it certainly is on the railways.