A Japanese team has used AI to rebuild pictures that people were only imagining, working from scans of their brain activity. Kei Majima of the National Institutes for Quantum Science and Technology (QST), Naoko Koide-Majima of the National Institute of Information and Communications Technology (NICT), and Shinji Nishimoto of Osaka University reported the method in the journal Neural Networks in November 2023.
The pictures were ordinary photos of objects and scenes, a first for imagined images according to the authors. Before this work, the paper says, imagined pictures had only been rebuilt for narrow types such as human faces or letters. In a computer test, the same paper reports that the rebuilt mental images were matched to the right original 75.6% of the time, where pure guessing gives 50%.
How the AI learned to read mental images from brain activity
The team did not scan new volunteers. It reused brain scans of three people recorded for a 2019 study that rebuilt seen images from scans by Guohua Shen, Yukiyasu Kamitani, and colleagues, Majima among them. The scans come from functional MRI (fMRI), a brain scan that tracks blood flow as a sign of nerve cell activity, recorded on a 3-tesla scanner according to the 2019 paper.
According to the authors’ preprint (an earlier public version of the paper), each person first looked at 1,200 photos inside the scanner, each shown five times. The same preprint reports that this gave about 6,000 brain responses per person. The AI learned from these responses which brain patterns go with which kinds of picture.
Then came the imagination test. The 2019 paper describes how a word on the screen told the person which picture to call up, and they held it in mind for 8 seconds. The same paper reports that the pictures to imagine were 10 photos and 15 simple shapes, which the volunteers had seen earlier and had learned to link with those words. According to the preprint, each picture was imagined 20 times.
What the new method adds
The abstract of the new paper explains why the 2019 method failed on imagined pictures: it relied heavily on basic visual details decoded from the brain, and it could not make good use of meaning. When a person imagines a picture, those basic details come through weakly. The new method adds meaning (what the picture shows) and uses Bayesian estimation, a statistical way to choose the most likely picture given the brain evidence.
For specialists, the preprint gives the parts. Simple linear decoders translate fMRI signals into the internal features of two image AIs: VGG19, a network that recognizes objects, and CLIP, a model that links images with words. A VQGAN image generator supplies what natural pictures usually look like, and the picture is refined over 500 rounds with a method called Langevin dynamics, according to the preprint. The preprint also reports that the higher visual areas of the brain, which handle what an object is, contributed most to the imagined reconstructions.
How accurate the reconstructions are
The accuracy test works like a two-choice quiz. A computer compares each rebuilt picture with the true image and with one other image picked at random, and scores a hit when the rebuilt picture is closer to the true one. The paper puts the guessing level for this quiz at 50%.
For pictures the volunteers were looking at, the paper reports 90.7% accuracy with the new method, against 64.3% with the 2019 method. For imagined pictures, the same paper reports 75.6% with the new method, against 50.4% with the 2019 method, which is guessing level. The authors’ preprint adds that the quality of the imagined reconstructions varied a lot from one picture to the next.
Limits of the study
Only three people took part, and each decoder was trained on thousands of that person’s own scans, in a large MRI machine, with volunteers who cooperated. The imagination test covered 25 pictures that the volunteers had seen and memorized beforehand, the 2019 paper shows. Pictures that a person invents freely, or thinks of without a cue word, were outside the test.
The work fits a series of Japanese studies in which Japanese teams have shown MRI can decode simple dream content and rebuild approximate images seen while awake, under strict lab conditions.
Why reconstructing mental images matters
The researchers see two uses, according to a Science Japan report on QST’s announcement. One is a brain-machine interface for patients who cannot easily communicate. The other is a tool to study how mental images, dreams, and hallucinations arise in the brain. In the Science Japan translation, Majima said: “For the first time, we’ve stepped into the realm of the human mind.”
Other teams are pursuing communication through devices placed inside the head, such as China’s own version of Neuralink, the NeuCyber brain chip. The Japanese method needs no surgery, but it depends on a large MRI scanner.
Sources and related information
Neural Networks – Mental image reconstruction from human brain activity: Neural decoding of mental imagery via deep neural network-based Bayesian estimation – 2023
The peer-reviewed, open-access paper by Koide-Majima, Nishimoto, and Majima (volume 170, pages 349-363, DOI 10.1016/j.neunet.2023.11.024) describes the Bayesian method with meaning added and reports the identification accuracies for seen and imagined images.
bioRxiv – Mental image reconstruction from human brain activity – 2023
The preprint version of the study gives the methods used in the article: three volunteers, about 6,000 training responses each, the VGG19, CLIP, and VQGAN models, 500 rounds of refinement, and the uneven quality of imagined reconstructions.
PLOS Computational Biology – Deep image reconstruction from human brain activity – 2019
Shen, Horikawa, Majima, and Kamitani recorded the brain scans reused by the new study, and describe the 3-tesla scanner, the word cues, the 8-second imagination periods, and the set of 25 pictures to imagine.
Science Japan (JST) – Mental image reconstruction using generative AI: decoding brain signals into images – 2024
This English report on the QST press conference names the three researchers and their institutions, quotes Majima, and lists the uses the team foresees.
Interesting Engineering – World’s 1st AI-generated images created using brain activity – 2023
This news report on the QST and Osaka work was the starting point of the article and summarizes the same accuracy figures.