The procedure described here involves training an animal to make steady contact with a reward spout in order to receive food or water and then pairing a stimulus with mild electric shock delivered through the spout. The animal quickly learns to avoid the shock by breaking contact with the spout whenever it detects the stimulus. The breaking of contact with the spout is then used to indicate tha...