This is your brain. And now this is your brain on YouTube. By using functional magnetic resonance imaging (fMRI) software, researchers at UC Berkeley created a visual representation of what our brains see when we watch a TV or movie. It works as such: scientists show subjects random clips and measure the corresponding cerebral activity. After the computer "learns" what vids evoke what brain activity, scientists feed 18 million seconds of random YouTube videos into the computer program where it reconstructs a movie representation of neural happenings based on the hundred clips most similar to what it sees.
Engadget, Scientists reconstruct images from our brains, plan to do the same for dreams (video)