Looks like a tapeworm which somehow got into the brain.