Artificial intelligence can predict premature death, study finds