Most AI diagnostic tools are black boxes, but the new approach allows doctors and patients to understand how the computer reached a diagnosis.