Machines are playing an increasing part not only in the treatment of disease, but also in helping to find out the causes of illness.