The immune system can play a critical role in modifying human behavior, according to a Yale-led study published in the journal Nature.