How Google’s AI can predict when a patient is going to die