The activity produced in the peripheral and central nervous system by stimuli that have the potential to damage tissue