Associative learning and regulation of immune responses