Caltech scientists have developed an algorithm that can predict someone's IQ based on their brain activity patterns, as revealed by brain scans.