Pattern recognition and functional brain imaging