Researchers have developed an AI tool that uses a single image of a person's face to determine their chance of surviving cancer.