An Artificial Intelligence that Predicts Death