Learned behaviour in response to stimuli linked to species survival