Link. The sensory inputs don’t change, but mouse behavioral manifestations of pain respond to an “expectation” of relief. The human analogue would be the common pain relief that is felt a few minutes after taking Advil (before it can actually do anything).
Sensory inputs come from the periphery, but pain is always in your head.