Artificial intelligence has been trained to examine eye scans for a condition that can cause blindness.