Doctors Told Him He Was Going to Die. Then A.I. Saved His Life.