An AI tool was trained on more than 40 million pictures to determine key indicators of a person's health