A scientist in Japan has developed a technique that uses brain scans and artificial intelligence to turn a person’s mental images into descriptive sentences.