When behavior is influenced through the process of using unpleasant stimuli, it is called escape conditioning.
Escape conditioning, also referred to as Escape Learning is a kind of conditioning technique in which the subject learns to escape or terminate an unpleasant stimulus.