How assessing relationships between emotions and cognition can improve farm animal welfare.