Imaging techniques are helping researchers to understand the workings of the brain almost in real time. By David Boothroyd.