Researchers use artificial intelligence to predict patient's lifespan