Artificial intelligence predicts patient lifespans