From 2002, a finding about domestic pigs (abstract, my underlining):
When food finders are exploited by others, but cannot themselves switch to scrounging or leave their foraging group, other behavioural adaptations should be favoured. Tactical deception in primates and foraging at the periphery of the group in ground-feeding birds have been suggested as two such responses. We show that exploited individuals may also respond by adjusting their foraging behaviour to the concurrent behaviour of the scroungers. We investigated the foraging strategies of exploited subordinate domestic pigs, Sus scrofa. Pairs of pigs were tested in competitive foraging trials. We trained the subordinate pig in each pair to use a producing tactic in competitive pair trials by informing it about the location of hidden food during a preceding search trial in which it foraged alone. The dominant pig was naïve about the food location in the competitive trials but able to displace the subordinate from the food source. We have shown previously that the dominants scrounged on their coforagers in these competitive trials by following them and displacing them from the food source. In the present study, logistic regression analyses show that the food-finding subordinates altered their foraging behaviour depending on the current behaviour of the dominants. Overall, the subordinates were more likely to show food-directed behaviour when the chances of arriving at the food source ahead of their exploiters were higher. The foraging behaviour of individual subordinates was related to their exploitation experience. Individuals subjected to higher exploitation pressure showed more varied strategies. These behavioural strategies are most simply interpreted as attempts by the exploited food finders to increase the time they can spend at the food source before the scroungers arrive.
Held S, Mendl M, Deveraux C, and Byrne RW (2002) Foraging pigs alter their behaviour in response to exploitation. Animal Behaviour: 64 (2); 157-165.
This demonstrates higher order thinking. If for no other reason than that, do not eat them.
Or if there are reasons other than aesthetic ones to exploit them, then let them live well with nesting material, shelter, friends and family to huddle with, muck, space to do the different stuff pigs like to do, and variation in their lives.
There is plenty more evidence of pig consciousness and behavioural preferences in the Compassion in World Farming report on animal sentience I picked up from the Global Warning event. Higher order thinking is also present in poultry, cattle and sheep – more on this another time.