A research team has unveiled an AI system that can infer what a person is seeing from fMRI brain scans—and then generate an image that closely matches the original visual scene.
A research team has unveiled an AI system that can infer what a person is seeing from fMRI brain scans—and then generate an image that closely matches the original visual scene. In demonstrations, the method produces reconstructions that capture not only the general category of an object but also key elements of its layout. The approach also works in reverse: given an image, the system can predict the corresponding pattern of brain activity.
The work was led by Michal Irani and colleagues at the Weizmann Institute of Science in Rehovot, Israel. Irani envisions the technology as a window into how the brain represents visual information, with long-term possibilities ranging from helping “locked-in” patients communicate to, more speculatively, rebuilding the content of dreams.
Outside experts have reacted with a mix of admiration and unease. Judy Illes, a neuroethicist and neurologist at the University of British Columbia who was not involved in the study, called the results “magnificent” and said the therapeutic potential for people with neurological conditions is especially compelling. Others emphasize the flip side: if such tools continue to improve, they could be adapted to probe private mental imagery—or even thoughts—without permission. Tommy Sprague, a neuroscientist at the University of California, Santa Barbara, described the reconstructions as striking, while warning that covertly extracting information about what someone is thinking would raise profound concerns.
Scientists have pursued “brain decoding” for decades. Early attempts at reconstructing perceived images from neural measurements tended to be smeared and ambiguous. Over time, improvements in both MRI hardware and machine-learning techniques have steadily sharpened the results.
Irani’s team began with publicly available datasets in which volunteers viewed hundreds to thousands of images while lying in functional MRI scanners. fMRI does not record neurons firing directly; instead, it measures changes in blood oxygenation that correlate with local brain activity. The technique produces a three-dimensional map made of voxels—tiny volumetric pixels—each representing the activity of a small chunk of tissue. In standard fMRI, a voxel typically spans about three cubic millimeters, encompassing roughly 16,000 neurons, limiting how precisely signals can be localized. The researchers leaned on newer, higher-resolution datasets in which each voxel covers about one cubic millimeter, providing finer-grained patterns for the AI to learn.
Many previous systems could identify broad content—generating something banana-like if a participant viewed a banana, for example—but often failed to reproduce the specific structure and spatial arrangement of the seen image. Irani’s group set out to narrow that gap.
They trained their core “decoder” on data from eight participants, each of whom had viewed around 9,000 images during high-resolution fMRI scanning. A key design choice was to split the decoder into two complementary pathways: one estimates an image’s structure—such as the distribution of colors and rough geometry—while the other estimates semantic content, such as which objects are present (for instance, bananas arranged on a plate). Those combined predictions are then fed into a diffusion model, the class of generative AI known for producing images by iteratively transforming noisy pixels into coherent pictures.
But building a robust model runs into a basic obstacle: there are not enough paired examples of brain scans and images. To compensate, the team built a second AI system—an “encoder”—that learns the inverse mapping, predicting brain activity patterns from images. By training the encoder and decoder together, the researchers were able to effectively generate additional training signal, refining both halves of the system and improving reconstruction quality.
