Abstract
Social network analysis (SNA) provides a means of understanding animals’ agonistic behaviour in a group. The aim of this study was to use SNA to characterise how individual cognitive performance affects agonistic behaviour. Using 175 pigs, we hypothesised that their choice of opponents would be affected by their ability to discriminate spatial information and to adapt their behaviour when cues were reversed. A spatial discrimination test was conducted; left and right locations were assigned as positive (food reward) and negative (fan) and each pig’s learning speed was recorded. The cues were then reversed, and we tested whether pigs adjusted their behaviour. At age 14 weeks, pigs were regrouped into 14 groups, and their behaviour recorded for 5h, from which weighted and unweighted networks were constructed. Skin lesions were counted after 24h, 1 week and 2 weeks. Males delivered more aggression, and heavier pigs were involved in more aggression. Betweenness centrality (a network position linking otherwise unconnected individuals) increased with network size and decreased with body weight. Passing the reversal learning test predicted more involvement in unilateral aggression. The current study therefore shows links between cognitive performance and aggression and advances the understanding of social network analysis in the context of animal welfare.
Introduction
Living in dynamic social groups requires an ability to appropriately respond to the behaviour of others and is hypothesised to be cognitively taxing1,2,3. The cognitive component of aggression has not been defined experimentally but navigating agonistic encounters is thought to involve reference memory of previous events and opponents, comparison against current circumstances and selection of appropriate behaviours4,5. Pigs are an ideal species to study the effects of cognitive ability on resolution of aggressive contests. Pigs engage in cognitive tasks, are particularly suited to foraging tasks2, can distinguish between familiar and unfamiliar conspecifics (whether or not they are genetically related)6 and fight to establish a dominance hierarchy under commercial farm conditions. Pig producers commonly perform social mixing of unfamiliar pigs7 and group composition is determined by management requirements. Social mixing often occurs several times in a lifetime for growing pigs and breeding sows, each time provoking aggression, which compromises health, welfare and growth8,9. Aggression after regrouping is drastically reduced after 24–48 hours10, but dominance relationships may be reinforced with brief or non-damaging agonistic behaviour. However, instability in dominance hierarchies can lead to overt fighting even 3 weeks after group mixing11.
Cognitive ability could reduce the welfare costs of sudden changes in the environment, in particular the need to navigate new social groups, to form preferential associations with benign or subordinate conspecifics and avoid unresolved conflicts. Stable social relationships with the mother and littermates are disrupted due to abrupt, early weaning and group mixing, so piglets are unable to gradually assimilate new individuals and experiences as wild pigs would10, hence the cognitive challenge of broadening the social group beyond immediate relatives is increased in the domestic setting.
We apply cognitive tests to isolate cognitive from non-cognitive factors affecting agonistic behaviour, such as body weight and sex. Although validated tests of cognition in pigs are mostly non-social2, we hypothesise that these cognitive skills may generalise across domains, i.e., the ability to categorise opponents using visual information may influence agonistic behaviour. Approximating a rival’s fighting ability using visual information would allow pigs to avoid the costs of fighting12. Consistent with this idea of cognitive rival assessment, pairs of pigs which had visual, olfactory and acoustic contact prior to dyadic contests had shorter contests than those which had no contact, including a shorter biting phase13.
Social network analysis can be applied to quantify complexity in post-mixing aggression in newly weaned and fattening pigs14 and to predict the likelihood of pigs receiving skin lesions. The agonistic behaviour of a pig is affected by the agonistic behaviour of its group mates15,16 and by each pig’s previous experience, which affects injury, fatigue, HPA activation17 and affective state18. Furthermore, social network centrality measures can provide novel insights into the social structure within a pen. For instance, win networks, which distinguish between winners and losers, offer deeper insights into dominance hierarchies, especially when analysing centrality measures such as eigenvector and degree centrality, both of which correlate with pigs’ dominance ranks19. Additionally, in competitive environments, pigs may benefit from selecting opponents with higher eigenvector centrality, i.e. animals that have a strong connection to other influential group members20, reflecting their prior fighting experience. Fighting against this kind of animal may lead to more efficient contest resolution and reduce the need for prolonged conflicts. We evaluate the social network characteristics of degree, betweenness and eigenvector centrality (defined in Table 1). These metrics have been shown to be suitable for predicting skin lesions received during aggression14,21, even in modest group sizes (12–15) of indoor housed pigs14. Using this approach, we can generate multiple groups of pigs with known cognitive performance and analyse network traits that are relevant to welfare.
We hypothesise that there will be individual differences in performance in cognitive tests, and that this will have consequences for aggression, affecting pigs’ ability to target aggression, win fights and avoid repeated fights.
Hypothesis 1: Cognitive tests reflect individual differences in associative learning speed which is likely to affect how well pigs can discriminate between opponents with higher or lower resource holding potential. Therefore, Hypothesis 1 (a) predicts that pigs with better performance in cognitive tests will engage in fights they will win, reflected in a higher outdegree centrality and lower indegree centrality in networks directed by fight outcome (more wins and fewer losses).
Pigs may also discriminate on behavioural or physical traits indicating fighting experience. Fighting against pigs that themselves have fighting experience with a variety of opponents may reduce the costs of aggression, since such pigs have gained information on their own RHP and will be more accurate in their decisions. Therefore, Hypothesis 1 (b) predicts that pigs with better performance in cognitive tests will be less likely to exchange agonistic behaviour with pigs that were themselves unconnected (lower betweenness centrality) and more likely to fight pigs that were well connected (higher eigenvector centrality).
Hypothesis 2: Associative learning tests reflect individual differences in working and reference memory. Remembering individual pigs and the results of agonistic interactions will avoid repeated or prolonged aggressive interactions. Therefore, pigs with better performance in cognitive tests will have lower weighted degree centrality (perform and receive less aggression) and accrue fewer skin lesions 24 h, 1 week and 2 weeks post-mixing.
Hypothesis 3: Demonstrating an ability to change behaviour according to changes in associations (reversal learning) will result in pigs de-escalating or retreating from fights they will ultimately lose. Therefore, pigs with better performance in cognitive tests will have lower weighted degree centrality (receive less aggression) and accrue fewer skin lesions 24 h post-mixing.
Methods
Ethical note
This study was conducted under licence from the UK Home Office (PPL: P3850 A80D/PP1403242) and with ethical approval from the SRUC Animal Ethics Committee (application number AE 24–2020). Refinements to the barren housing treatment and cognitive tests were made during the first two batches, to minimise stress. All experiments were performed in accordance with relevant guidelines and regulations: ASPA Act 1986; Amendment Regulations 2012 (SI 2012/3039) and are reported following the ARRIVE guidelines.
Experiment summary
Data were collected from 175 Large White x Landrace x Duroc pigs. Four siblings per litter underwent a spatial discrimination learning task at 10 weeks and a reversal learning task at 12 weeks of age. Full methods of the habituation and training for these tasks are published23 (see Fig. 1). At 14 weeks of age, pigs were regrouped into mixed pens of females and intact (uncastrated) males, comprising 14 pigs on average.
Pig husbandry
Farrowing occurred in free-farrowing pens (4.5 × 2.2 m) and the sow was removed 4 weeks post-farrowing. Pre-weaning socialisation (age 2–4 weeks) and post-weaning enrichment treatments were applied (described in23) to stimulate variation in cognitive development24,25,26. Briefly, enriched pens were larger (11.2 m2), with deep straw bedding and a range of enrichment materials that were frequently replenished. Barren pens were smaller (5.5 m2) and were minimally enriched, with wood shavings and mats for thermal comfort. Here, we focus on the correlations between cognitive test performance and later agonistic behaviour, rather than investigating the causes of cognitive differences. We define cognitive performance experimentally rather than directly comparing the early life treatments with aggressive outcomes, because i) we applied the treatments at the litter level and would require an unfeasibly large sample size to separate genetic, maternal and treatment effects on cognition, ii) enrichment may influence motivation as well as cognition23 and iii) socialisation and enrichment do not affect individuals equally12,27.
From weaning, pigs were habituated to humans in the pen. Gentling was applied gradually over 2 weeks, only moving to the next stage when pigs were willing to approach, starting with a person sitting in the pen, then standing and walking, then using a pig board, then touching the pigs’ head and body (to prepare for later lesion scoring). At 6 weeks of age, four test pigs per litter were moved to an experimental building and penned in litter groups. Each pen contained 4 familiar littermates (range 3–5) plus up to 5 additional littermates which were used as stimulus pigs in a social preference test (not analysed in this study). Stimulus pigs were removed from the group before training for the cognitive tests started at 8 weeks of age. Thereafter, group composition was stable until experimental regrouping at 14 weeks of age. From 6 to 9 weeks, pigs were gradually habituated to food rewards (a chocolate peanut and a slice of banana), handling and brief isolation from pen-mates. At 9 weeks, pigs were habituated to the test arena and goal box (Fig. 2).
Image of goal box used for the spatial discrimination test. The internal dimensions of the box were 24 cm depth (D) and 24 cm height (H) and the box contained a 10 cm high false floor (F), underneath which an inaccessible reward was placed. R indicates the location of the accessible reward (above the false floor).
Spatial discrimination test
Each farrowing batch of litters was split into two cohorts and trained on alternate days. Left and right locations were assigned as positive (food reward) and negative (no food reward and a fan turned on) respectively and pigs were then allocated to positive as either left or right, balanced within sex and litter. Each pig had two pre-acquisition sessions of six trials, during which they learnt to open the goal box, and then five sessions of pseudorandomised training trials, containing a total of 36 trials. We avoided presenting more than two negative trials consecutively so pigs were not too discouraged. If pigs did not habituate or did not explore the box in the negative location with sufficient remaining trials to pass (12 trials), they were excluded. This was to confirm that avoiding the negative location was due to a learnt association rather than neophobia. We then measured learning speed from the trial during which the pig first opened the goal box in the negative location, i.e. had experienced both types of cue. Learning speed was measured in number of trials to reach the pass criterion.
In each trial, pigs were taken out of the arena by experimenters once they had: i) eaten the reward, ii) made a “no go” decision by looking towards the goal box and returning to the entry gate for three seconds, iii) exhibited signs of stress (loud or high-pitched vocalizations, attempting to escape from the arena), or iv) after 30 s. Between trials within a session, the pig left the arena for the time it took to replenish and/or move the goal box. The pass criterion was based on consistent correct decisions with a probability of p < 0.05, which equated to 10/12 consecutive correct decisions. A correct decision was “go” (opening the goal box) if the box was in the positive location, or “no go” (do not open the goal box) if the box was in the negative location.
Latency to open the goal box was recorded live using a stopwatch by an observer positioned at the entrance to the arena. In cases where it was unclear whether the pig had opened the goal box, the experimenter (positioned behind the goal box, as shown in figure S3) provided confirmation to the observer. Latency was recorded to the nearest second. While formal inter-observer reliability tests were not conducted between the four observers, all new observers were paired with an experienced scorer for initial sessions to ensure consistency in scoring. Additionally, observers were rotated across test groups and times of day to avoid systematic bias.
Reversal learning
The reversal learning test took place during batches 3–8 (total 151 pigs) of which 102 demonstrated a consistent preference for the positive over the negative location in the spatial discrimination and then completed the reversal learning test. Data were collected live using a stopwatch, as was done in the spatial discrimination test.
Firstly, two goal boxes were presented concurrently, on the left and right of the arena. Pigs were given up to 3 refresher sessions of 6 trials each, for habituation to the second box, and to confirm that they remembered the reward location. The reversal learning phase followed, comprising 20 trials during which the positive and negative locations were reversed. In the first trial of the reversal learning test, once the pig had opened the goal box in the new negative location or after 30 s, the flap of the box in the new positive location was opened by the experimenter to reveal the reward. A pass result in the reversal learning test required pigs to approach the new positive location as a first choice, for 6/6 or 10/12 consecutive trials.
Regrouping
At 14 weeks of age, the four pigs in each litter were ranked according to the outcome of the spatial discrimination and reversal learning tests. Points were allocated for: i) passing the spatial discrimination test (SDT), ii) above average learning speed in the SDT and iii) passing the reversal learning test, and then summed. The two highest scoring pigs were allocated to a “high test performance” group and the other two to a “low test performance” group. It was essential to balance groups based on litter as pigs perform more aggression towards unfamiliar pigs than littermates. Each pig was accompanied by a single littermate, when possible. Due to variations in litter sizes or pigs being removed from the trial due to health issues, four pigs moved with no littermate; 136 with 1 littermate; 31 with 2 littermates; and 4 moved with 3 littermates.
Pens were 6.1 × 2.35 m including a slatted dunging area, with a maximum of 16 pigs per pen, resulting in a space allowance of 1.02 m2/pig on average. Within each of 7 batches, males and females were equally distributed across pens and the body weight variation within each mixed pen was kept to a minimum. This resulted in 175 pigs being relocated across 14 groups (across 7 batches). Throughout the experiment, pigs were identified using spray paint (see figure S4). In the morning, prior to mixing, pigs were weighed to the nearest 0.5 kg and whilst in the weigh crate were given a new identification mark, to avoid having multiple pigs with the same ID in the same pen. Mean body weight and standard deviation were 62.4 ± 7.2 kg overall and within each pen, standard deviation varied from 3.78- 6.84 kg.
Aggressive behaviour and skin lesions
Pens were video recorded for 5 h continuously immediately post-mixing. Mixing was carried out at midday after morning husbandry in the building where the pigs were housed, to avoid further disruption., and behavioural data were obtained using “The Observer XT15 and XT16” software (Noldus, Wageningen, NL). This period has been identified as an appropriate window to capture the peak of aggression after regrouping28. For all aggressive interactions, the identity of the giver and receiver and the type of behaviour was recorded by a single observer (Table 2) who was blind to the cognitive performance of each pig and the category of the pen (high/low cognitive performance). The data for all 14 pens were scored in 30-min segments, rather than scoring the batches sequentially, to ensure any variation in scoring would not be systematic across batches. The use of a single highly trained observer was intended to avoid inter-observer variation. Nevertheless, in prior studies of post-mixing aggression in pigs, high levels of agreement between observers are reported, indicating a high level of consistency in use of this ethogram29,30. In the current study, the observer was trained by experienced colleagues (the same observers in the studies cited here). The same observer also counted all fresh skin lesions in the anterior, central, and posterior body regions immediately before group mixing, 24 h post-mixing, and at one week and two weeks post mixing. Lesions were considered recent if they were vivid red or recently scabbed11. All lesions observed were counted equally, regardless of size and severity. For lesion counting, it was not possible to perform intra-observer reliability testing across batches because this was carried out live. To avoid variation in how lesions were counted, the observer was trained by colleagues experienced in lesion scoring and followed a protocol used on the pig unit for previous studies. Skin lesion counts were calculated by subtracting lesions in the morning before mixing from lesions 24 h later. Negative numbers were converted to zero.
Social network analysis
In line with previous studies of aggression networks in indoor pigs14,21, we constructed four networks to reflect the range of agonistic behaviour (see Table 2):
-
1.
ALL networks contained all agonistic behaviour (damaging and non-damaging).
-
2.
UNI networks contained unidirectional, non-reciprocated, damaging aggression.
-
3.
FIGHT networks contained mutual fighting.
-
4.
WIN networks contained fights with decided outcomes, i.e. one pig clearly signalled defeat. Edges were directed from winner to loser.
ALL, UNI, and FIGHT networks were weighted by duration, with point behaviours assigned a weight of one second and then summed with the duration of state behaviours. WIN networks were weighted by frequency of fights. Networks were directed, except for FIGHT networks.
The following centrality measures were analysed: degree centrality (in, out and all degree), betweenness centrality and eigenvector centrality. Eigenvector centrality is an undirected measure, so we analyse this in the context of FIGHT networks only.
Although the study was designed to have equal group size and familiarity (i.e. balanced litter distribution across groups), it was not possible to maintain consistent network size and familiarity in this experiment due to health and fertility reasons. Therefore, we applied corrections to the calculations of degree, betweenness and eigenvector centrality to account for group size (see supplementary methods). Graphs were created using the package “igraph”31 and collapsed using “simplify” from the package “sna”32to remove multiple edges between the same dyad. Centrality was extracted using the functions “degree”, “betweenness” and “eigen_centrality” in igraph.
Statistical analysis
Analysis was carried out in R version 4.3.133.
The outcomes of the cognitive tests were i) number of trials required to score 10/12 consecutive correct choices in the spatial discrimination task and ii) pass or fail in the reversal learning test. Passing the reversal learning test required 6/6 or 10/12 consecutive correct choices. A score of 36 was assigned to pigs which completed but did not pass the spatial discrimination test. The number of trials to pass the spatial discrimination task was therefore bounded at 12–36. The distribution was moderately skewed by the 33% of pigs which passed in the first 12 trials, so learning speed was analysed as a categorical trait (“slow” = fail or pass in > 17 trials, “fast” = pass in ≤ 17 trials, where 17 trials was the median number of trials required to pass).
Analysis of social networks and skin lesions
Null model
Mixed models using lme434 (LMM for continuous network traits, GLMM with a poisson or binomial link for count or binary outcomes) were used to account for fixed and random effects. Assumptions of linear models were assessed by visual inspection of residuals using the r package “performance”35 and assessment of variance inflation factor to detect multicollinearity. Where residuals of the final null model violated the assumptions of the model, outcomes were transformed or categorised (see supplementary results, table S3).
A null (partial) model was constructed, without cognitive performance measures. Centrality measures and skin lesion counts were used as response variables in separate models with the fixed effects of sex, body weight and network size, defined according to the number of non-littermates in the pen (see supplementary methods), which varied from 6 to 14, mean 10.8, s.d. = 2.09. Random effects were network ID (14 levels), and litter (46 levels).
Terms identified as candidates for dropping from the model were checked by performing likelihood ratio tests (LRT; using the chi square distribution) or Wald (F) tests of the effect size (scaled using estimated standard error), using the “anova” function, to assess whether the complex model was better at explaining variability in the data than the model without the term. The statistical significance of random effects was evaluated using LRT tests, and by inspecting the change in model fit statistics (AIC and RMSE) associated with inclusion of random effects.
Full model
Each cognitive outcome was included as a fixed effect in a full model and their significance was assessed using Wald (F) tests and based on comparing the model fit statistics with those of the null model. Of the 175 pigs in the regrouping treatment, 50 had not completed the spatial discrimination and 73 had not completed the reversal learning test. Inclusion in each cognitive test was evaluated as a binary fixed effect, before evaluating the cognitive outcomes. Cognitive outcomes were a) learning speed in the discrimination task (fast/slow) and b) pass/fail in the reversal learning test.
Results
Spatial discrimination and reversal learning
Pigs took 12 to 33 trials to achieve the pass criterion (10/12 correct choices). The distribution of the number of trials to pass the task was negatively skewed, with 42/141 (30%) pigs passing in the minimum possible number of trials (Fig. 3). Ten pigs completed all trials but failed to reach the pass criterion.
Results of the spatial discrimination task, split by “high” (higher scoring in cognitive tests compared to littermates) and “low” (lower performance in cognitive tests compared to littermates) regrouping pens. Pigs which did not complete the test are indicated in grey, with learning speed varying from yellow (fastest) to purple (slowest), using the r colour scale “viridis.”.
Inclusion in the spatial discrimination test did not significantly affect centrality outcomes, whereas inclusion in the reversal learning test had a slightly negative effect on eigenvector centrality (LS means and confidence intervals were: reversal: 0.20, 0.18–0.21, no reversal: 0.25, 0.23–0.27; F = 5.22, p = 0.021). For full results see tables S5 and S6. Differences are reported as significant if p < 0.05 and a tendency if p < 0.1.
A total of 51 pigs (out of 102) passed the reversal learning test by meeting the criteria: i) 10/12 consecutive correct trials (33/102, 32%); or ii) 6/6 consecutive correct trials (47/102, 46%) within 20 trials. These outcome measures were positively correlated (r = 0.580, p < 0.001) and 29 pigs passed according to both criteria. Most pigs which reached the pass criteria required 19–20 trials to pass (64% of those which reached 6/6 correct, 70% of those which reached 10/12 correct). Reversal learning speed was not analysed as a predictor of centrality in aggression networks or skin lesions because of a lack of variation.
Agonistic behaviour
In the 5 h after regrouping, pigs each spent a median of 633 s (35—2982 s) performing agonistic behaviour and 602 s (86–2963 s) receiving agonistic behaviour. For summary statistics of individual agonistic behaviours, see supplementary results, tables S1-S2.
Social network characteristics
We measured unweighted and weighted networks (for descriptive statistics of all network outcomes, see table S3), however there was little variation in unweighted degree centrality in networks containing all agonistic interactions (ALL). In almost all pens each pig exchanged some form of agonistic behaviour with all other non-littermates, 81% (142/175), of the pigs had an unweighted degree centrality of 1 (range 0.785–1), so we could not statistically analyse the causes of variation in unweighted degree centrality.
Weighted measures were considered redundant if they correlated at > 0.8 with unweighted centrality traits in the same network (table S4). These were: In WIN networks, indegree and outdegree centrality, and in UNI networks, betweenness centrality. For these networks, only unweighted measures are reported.
The effects of non-cognitive factors on individual centrality
The effects of sex, body weight and network size on individual centrality are summarised in Fig. 4.
Scatterplots showing the relationship between centrality in ALL networks on the y axis (weighted degree, weighted outdegree, betweenness, weighted betweenness) and on the x-axis: number of non-littermates (left) or body weight (right). Each plot is split into females (red dots) and males (blue dots).
Sex
In ALL networks, weighted degree and weighted outdegree centrality were higher in males than females (Table 3). In UNI networks, males had a higher unweighted outdegree centrality than females. Weighted degree was greater for females, which was driven by indegree more than outdegree, i.e. females received more unilateral aggression than males (number of opponents and duration). In FIGHT networks, unweighted degree was unaffected by sex, but males had greater weighted degree centrality than females. Unweighted betweenness centrality was not affected by sex but weighted betweenness was higher in males. In WIN networks, males had a non-significant tendency towards greater outdegree centrality than females (F = 3.36, p = 0.069) and had lower eigenvector centrality compared with females (Table 4). Betweenness centrality was not affected by sex.
Body weight
In ALL networks, as body weight increased, weighted degree centrality and outdegree increased, while unweighted and weighted betweenness decreased (Table 3). In UNI networks and in FIGHT networks, increasing body weight increased weighted degree centrality only. Unweighted indegree centrality in WIN networks was positively associated with body weight, indicating that heavier pigs tended to lose fights against more opponents. For every 20 kg rise in body weight, pigs had an increase of 0.08 in indegree centrality (equivalent to losing against one more opponent in an average pen with 12 non-littermates). This relationship was not significant in weighted WIN networks, (F = 3.10, p = 0.08). Outdegree and eigenvector centrality were not affected by body weight.
Network size
Network size affected centrality despite ALL, UNI and FIGHT networks already having been adjusted to account for network size. In ALL networks, increasing network size decreased weighted degree centrality but increased weighted outdegree centrality, and unweighted and weighted betweenness centrality. In UNI networks, increasing network size decreased unweighted degree centrality and outdegree centrality and increased betweenness centrality. In FIGHT networks, increasing network size increased weighted degree and weighted betweenness centrality. Network size did not affect centrality in WIN networks.
Associations between cognitive test performance and regrouping aggression
In ALL and FIGHT networks, the results of the cognitive tests were not associated with centrality. In UNI networks, learning speed had no effect on individual centrality, whereas pigs which passed the reversal test engaged in more unilateral aggression (weighted degree) than pigs which failed the test (Table 4; Fig. 5).
Model to show relationship between reversal learning outcome and weighted degree in UNILATERAL networks generated using data from a) batch 3 pen 1 and b) batch 4 pen 2. Node size is proportional to weighted degree centrality, edge width is proportional to edge weight (total duration of unilateral aggression between each dyad). The colour of the node reflects performance in the reversal learning test (red = pass, blue = fail, black = no test). Weighted degree centrality is slightly higher in pigs which passed the reversal learning test, so the red nodes are slightly larger than the blue nodes.
In WIN networks, there was a tendency for pigs which passed the reversal learning test to have both a higher indegree centrality and a higher outdegree centrality than those which failed. Eigenvector centrality was not associated with cognitive performance.
Performance in cognitive tests had a small effect on the number of skin lesions received at 24 h, 1 week or 2 weeks after mixing (Table 5).
Fast learners in the social discrimination test received fewer anterior lesions and more posterior lesions in the acute 24 h after mixing than slow learners. They also received more anterior lesions at 1 week after mixing. Pigs that passed the reversal learning test had more anterior lesions at 24 h and 1 week after mixing than those that failed the test. By 2 weeks post-mixing there were no significant associations between cognitive performance and skin lesions.
Discussion
This study provides evidence that pigs which vary in cognitive performance have differential outcomes in their agonistic behaviour post mixing.
We predicted that pigs with higher cognitive performance would receive less agonistic behaviour and avoid prolonged or repeated aggressive interactions. We also predicted that cognitive ability would decrease the cost of aggression in terms of skin lesions, which may be apparent during the acute, dominance-related fighting, or later at 1 or 2 weeks, reflecting undecided or unstable dominance relationships and conflict over resources. However, we found no relationship between cognitive performance and the total weighted all-degree, in-degree or out-degree in all agonistic behaviour networks (ALL). Agonistic behaviour that does not involve physical injury, such as parallel walking and pushing may be necessary for pigs to learn about unfamiliar opponents, and because they are low cost, learning to avoid these sorts of interactions is not ecologically relevant. Furthermore, in contrast to our predictions, passing the reversal learning test was associated with higher weighted degree centrality in unilateral aggression networks (unreciprocated aggression) and was related to receiving more skin lesions. There was no evidence that these pigs specifically acted as the givers or receivers of unilateral aggression.
In line with predictions that pigs with better cognitive performance would receive fewer skin lesions, faster learning in the spatial discrimination task was associated with pigs receiving fewer skin lesions. However, this difference was reversed after one week and better performance in the reversal learning test was associated with receiving more skin lesions in the anterior body region. Similarly, other social network studies of pigs have found that lower centrality in aggression networks post-mixing did not translate to receiving fewer skin lesions 3 weeks post mixing11,14. It is possible that pigs which learnt the spatial association faster were more food-motivated than pigs which learnt the task slowly. In the acute period of fighting after mixing, agonistic behaviour occurs immediately when pigs enter the pen and is unrelated to feeder access. However, aggression that occurs later once dominance relationships have largely been settled are often related to feeder use, so these pigs could have been more involved in food competition at 1 week post mixing.
We predicted that pigs with better cognitive performance would have better fighting success and higher eigenvector centrality. Our results partially support this; pigs with better performance in the reversal learning test had a tendency towards higher indegree and outdegree centrality in fighting networks directed by outcome, suggesting that they both won and lost against more opponents. The correlation between successful reversal learning performance, being involved in more unilateral aggression and being involved in fights with a decisive ending, both as winners and losers, suggests a possible link between cognitive performance and skilful fighting, including both offensive and defensive behaviour5.
Novel tests of social cognition may be required to access the cognitive domains relevant to aggression. Measuring assessment ability using repeated contests poses clear welfare problems36 and assays of cognition which involve pain and stress can themselves inhibit learning37, therefore reward based learning is preferred. However, prior studies had limited success conditioning pigs to prefer one unfamiliar conspecific over another using food rewards38, which we also failed to achieve in a suitable time frame in pilot tests for this study.
The association between passing the reversal learning test and receiving more anterior skin lesions could indicate that rather than selecting opponents based on the likelihood of winning, they select opponents of similar or slightly higher fighting ability based on the potential gain in dominance. To understand whether cognitive ability enhanced pigs’ success in winning contests, as we found in dyadic contests23 and resulted in pigs’ occupying higher dominance ranks, dominance rating systems could be applied, such as Glicko-2, which takes into account the focal pig’s fighting success, the fighting success of their opponents, and the confidence in this estimate39.
The effect of network size on aggression was interesting and persisted even though we attempted to normalise social network outcomes by dividing by the total number of non-littermates. With more potential opponents, pigs engaged in more mutual fighting and less unilateral aggression. This may reflect pigs’ greater capacity to remember previous interactions with individuals in smaller groups, since brief unilateral aggression is used to maintain dominance relationships without escalating to fighting. Keeping pigs in large, homogenous groups is in contrast with the natural history of pigs, which live in matrilineal societies in which adult males are largely solitary40. Weighted betweenness centrality was increased by network size in every type of network. In larger groups, indirect connections become more important and betweenness centrality may be more sensitive to cognitive differences if pigs were evaluated in large groups.
In unweighted, directed networks, males were more central (degree) than females, i.e. they directed aggression towards a greater number of others. Males also performed more aggression overall, as is characteristic of pig aggression41. Total aggression received (weighted indegree) was not affected by sex. The influence of sex on aggression may have limited our statistical power to detect more subtle influences of cognition, so testing cognitive effects on aggression in single sex groups may be more elucidating. Social network analysis of pigs has focussed on single sex groups of females or castrated males19,21,42. With pressure to eliminate castration in the EU, management changes must consider solutions to reduce aggressive behaviour between intact males. In this study the males were not castrated. Whilst reflecting the natural state of the animals, this likely resulted in larger sex differences compared to females than would have occurred if the males had been castrated. We did not have the capacity to test cognitive ability in large enough numbers to form balanced, single sex groups. Navigating mixed-sex groups could also be less cognitively demanding and therefore less sensitive to individual variation than single sex groups, because pigs can easily evaluate the sex of their opponent, compared with other aspects of fighting ability, such as size.
Female pigs had higher eigenvector centrality than males in WIN networks, demonstrating that females were more likely to engage in conclusive fights against pigs which themselves had fights with conclusive outcomes. Persisting in a contest to a clear outcome may be more advantageous for females because the cost of fighting is lower in contests between females than males. Surprisingly, sex did not affect indegree or outdegree in WIN networks, which may reflect a tendency for mutual fighting to occur primarily between individuals of the same sex.
Pigs with a higher body weight performed more aggression as shown in prior studies of regrouping aggression41,43. Indegree (losing fights) was positively associated with body weight in WIN networks, which is unexpected since smaller pigs are more likely to lose dyadic contests44. Higher body weight was associated with lower betweenness centrality in ALL networks, indicating that heavier pigs were less likely to connect individuals which did not directly interact. Larger pigs are more likely to be part of a fighting clique14 and may have low betweenness because they fight with others that are already well connected in the network. Dynamic network analysis of post-grouping aggression would lead to a better understanding of the direction of causality between betweenness, body weight, feeding behaviour and dominance.
A limitation of our experimental design was the necessity to train pigs between weaning and testing aggression at a commercially relevant age and body size, which led to an erosion from the initial sample size, similar to other studies involving spatial discrimination and reversal learning12. Pigs were regrouped even if they had not completed the cognitive tasks, to balance pen size and familiarity as far as possible. Therefore, social networks contained pigs which had no data for reversal learning.
We also note that the limitations on pigs’ ability to avoid aggression in a confined environment may mask individual strengths in learning and memory. Studies suggest that reversal learning performance is enhanced in species with greater social complexity and may allow wild animals to live in larger groups45 but intensely housed pigs have little choice over their own behaviour. This is an important finding, since in a confined pen of pigs kept at commercial stocking density, even pigs with higher cognitive ability may not have the space or opportunity to escape from attacks (figure S4). Testing pigs in larger or more complex environments may allow us to evaluate if pigs differ in their ability to use spatial skills to navigate both their spatial and social environment46.
We hypothesised that individual differences in cognitive ability would account for some of the unexplained variation in how pigs apportion aggression after group mixing. Most pigs successfully completed the spatial discrimination task, but their learning speed in this task did not predict centrality in social networks. Reversal learning performance had a minor effect on centrality in unweighted networks. We cannot over-interpret the importance of this result due to the large number of outcome measures evaluated and the limitation that only 51 pigs completed the reversal learning task. For future work, adapting the reversal learning test to extend the testing period may yield data on a greater proportion of pigs.
It remains to be seen how cognitive ability affects pigs’ sequential decisions, and the next step in the understanding of centrality measures such as betweenness and eigenvector centrality could include dynamic network analysis. The development of social cognitive tests that could be applied in a short time frame before mixing could elucidate cognitive domains we were not able to test in this study, such as communication, social discrimination, and individual recognition. We adapted McLeman et al.38 to measure pigs’ ability to discriminate unfamiliar conspecifics by size, however the time required was too long to habituate and train sufficient numbers of pigs to form replicated, balanced groups and then test aggression at a commercially-relevant stage (growing pigs).
In conclusion, the results of this study show that the performance of pigs in non-social cognitive tests does influence their role in group level aggression post mixing. However, the cognitive skills measured in these tests did not function as we had expected in protecting them from the costs of aggression. Since pigs can make associations between location and rewards and learn quickly to update information when cues are reversed, management strategies to reduce aggression could harness this capacity. This could include the use of more complex environments with multiple feeder locations, to reduce competition and allow defeated animals to avoid aggressors.
Data availability
Data and R code associated with this paper are available on request from Lucy Oldham (lucy.oldham@sruc.ac.uk).
References
-
Ashton, B. J., Thornton, A. & Ridley, A. R. An intraspecific appraisal of the social intelligence hypothesis. Philos Trans. R. Soc. B Biol. Sci. https://doi.org/10.1098/rstb.2017.0288 (2018).
-
Nawroth, C. et al. Farm animal cognition-linking behavior, welfare, and ethics. Front. Vet. Sci. 6, 1–16 (2019).
-
Reichert, M. S. & Quinn, J. L. Cognition in Contests: Mechanisms, ecology, and evolution. Trend. Ecol. Evol. 32, 773–785 (2017).
-
Arnott, G. & Elwood, R. W. Assessment of fighting ability in animal contests. Anim. Behav. 77, 991–1004 (2009).
-
Briffa, M. & Lane, S. M. The role of skill in animal contests: A neglected component of fighting ability. Proc. R. Soc. B Biol. Sci. https://doi.org/10.1098/rspb.2017.1596 (2017).
-
Souza, A. S., Jansen, J., Tempelman, R. J., Mendl, M. & Zanella, A. J. A novel method for testing social recognition in young pigs and the modulating effects of relocation. Appl. Anim. Behav. Sci. 99, 77–87 (2006).
-
Ison, S. H., Bates, R. O., Ernst, C. W., Steibel, J. P. & Siegford, J. M. Housing, ease of handling and minimising inter-pig aggression at mixing for nursery to finishing pigs as reported in a survey of North American pork producers. Appl. Anim. Behav. Sci. 205, 159–166 (2018).
-
Peden, R. S. E., Turner, S. P., Boyle, L. A. & Camerlink, I. The translation of animal welfare research into practice: The case of mixing aggression between pigs. Appl. Anim. Behav. Sci. 204, 1–9 (2018).
-
Rydhmer, L. et al. Aggressive and sexual behaviour of growing and finishing pigs reared in groups, without castration. Acta. Agric. Scand. Sect. – Anim. Sci. 56, 109–119 (2006).
-
Meese, G. B. & Ewbank, R. The establishment and nature of the dominance hierarchy in the domesticated pig. Anim. Behav. 21, 326–334 (1973).
-
Desire, S. et al. Analysis of the phenotypic link between behavioural traits at mixing and increased long-term social stability in group-housed pigs. Appl. Anim. Behav. Sci. 166, 52–62 (2015).
-
Weller, J. E. et al. The influence of early life socialisation on cognition in the domestic pig (Sus scrofa domestica). Sci. Rep. 10, 19077 (2020).
-
Jensen, P. & Yngvesson, J. Aggression between unacquainted pigs—sequential assessment and effects of familiarity and weight. Appl. Anim. Behav. Sci. 58, 49–61 (1998).
-
Foister, S. et al. Social network properties predict chronic aggression in commercial pig systems. PLoS ONE 13, e0205122 (2018).
-
Asher, L. et al. Recent advances in the analysis of behavioural organization and interpretation as indicators of animal welfare. J. R. Soc. Interface https://doi.org/10.1098/rsif.2009.0221 (2009).
-
Turner, S. P. et al. The accumulation of skin lesions and their use as a predictor of individual aggressiveness in pigs. Appl. Anim. Behav. Sci. 96, 245–259 (2006).
-
Coutellier, L. et al. Pig’s responses to repeated social regrouping and relocation during the growing-finishing period. Appl. Anim. Behav. Sci. 105, 102–114 (2007).
-
Oldham, L. et al. Once bitten, twice shy: Aggressive and defeated pigs begin agonistic encounters with more negative emotions. Appl. Anim. Behav. Sci. https://doi.org/10.1016/j.applanim.2021.105488 (2021).
-
Büttner, K., Czycholl, I., Mees, K. & Krieter, J. Social network analysis in pigs: Impacts of significant dyads on general network and centrality parameters. Animal https://doi.org/10.1017/S1751731119001836 (2019).
-
Camerlink, I., Arnott, G., Farish, M. & Turner, S. P. Complex contests and the influence of aggressiveness in pigs. Anim. Behav. 121, 71–78 (2016).
-
Agha, S., Fabrega, E., Quintanilla, R. & Sanchez, J. P. Social network analysis of agonistic behaviour and its association with economically important. Trait. Pig. Anim. https://doi.org/10.3390/ani10112123 (2020).
-
Farine, D. R. & Whitehead, H. Constructing, conducting and interpreting animal social network analysis. J. Anim. Ecol. 84, 1144–1163 (2015).
-
Lee, V. E. et al. Does cognitive performance predict contest outcome in pigs?. Anim. Behav. 214, 27–41 (2024).
-
Elizabeth Bolhuis, J. et al. Working and reference memory of pigs (Sus scrofa domesticus) in a holeboard spatial discrimination task: The influence of environmental enrichment. Anim. Cogn. 16, 845–850 (2013).
-
Grimberg-Henrici, C. G. E., Vermaak, P., Bolhuis, J. E., Nordquist, R. E. & van der Staay, F. J. Effects of environmental enrichment on cognitive performance of pigs in a spatial holeboard discrimination task. Anim. Cogn. 19, 271–283 (2016).
-
Jansen, J., Bolhuis, J. E., Schouten, W. G. P., Spruijt, B. M. & Wiegant, V. M. Spatial learning in pigs: Effects of environmental enrichment and individual characteristics on behaviour and performance. Anim. Cogn. 12, 303–315 (2009).
-
Durán-Carabali, L. E. et al. Preventive and therapeutic effects of environmental enrichment in Wistar rats submitted to neonatal hypoxia-ischemia. Behav. Brain Res. 359, 485–497 (2019).
-
Angarita, B. K. et al. Estimation of indirect social genetic effects for skin lesion count in group-housed pigs by quantifying behavioral interactions1. J. Anim. Sci. 97, 3658–3668 (2019).
-
Turner, S. P. et al. Genetic validation of postmixing skin injuries as an indicator of aggressiveness and the relationship with injuries under more stable social conditions. J. Anim. Sci. 87, 3076–3082 (2009).
-
Turner, S. P. et al. Aggressive behaviour at regrouping is a poor predictor of chronic aggression in stable social groups. Appl. Anim. Behav. Sci. 191, 98–106 (2017).
-
Csardi, G. & Nepusz, T. The igraph software package for complex network research. InterJ. Complex. Syst. 1695, 1–9 (2006).
-
Butts, C. T. Social network analysis with sna. J. Stat. Softw. 24, 1–51 (2008).
-
R Core Team. R: A Language and Environment for Statistical Computing. (R Foundation for Statistical Computing, Vienna, Austria, 2023).
-
Bates, D., Mächler, M., Bolker, B. & Walker, S. Fitting linear mixed-effects models using lme4. J. Stat. Softw. https://doi.org/10.18637/jss.v067.i01 (2015).
-
Lüdecke, D., Ben-Shachar, M. S., Patil, I., Waggoner, P. & Makowski, D. Performance: An R package for assessment, comparison and testing of statistical models. J. Open Sour. Softw. https://doi.org/10.21105/joss.03139 (2021).
-
Elwood, R. W. et al. Problems with repeated contests: A comment on Chapin. Behav. Ecol. 30, 1189–1189 (2019).
-
d’Isa, R. & Gerlai, R. Designing animal-friendly behavioral tests for neuroscience research: The importance of an ethological approach. Front. Behav. Neurosci. https://doi.org/10.3389/fnbeh.2022.1090248 (2022).
-
McLeman, M. A., Mendl, M. T., Jones, R. B. & Wathes, C. M. Social discrimination of familiar conspecifics by juvenile pigs, Sus scrofa: Development of a non-invasive method to study the transmission of unimodal and bimodal cues between live stimuli. Appl. Anim. Behav. Sci. 115, 123–137 (2008).
-
Williamson, C. M., Lee, W. & Curley, J. P. Temporal dynamics of social hierarchy formation and maintenance in male mice. Anim. Behav. 115, 259–272 (2016).
-
Turner, S. P. & Edwards, S. A. Housing immature domestic pigs in large social groups: Implications for social organisation in a hierarchical society. Appl. Anim. Behav. Sci. 87, 239–253 (2004).
-
Mei, H., Yang, B., Luo, J. & Gan, L. The effect of mixing levels on aggression at weaning in piglets. Appl. Anim. Behav. Sci. 179, 32–38 (2016).
-
Veit, C. et al. The use of social network analysis to describe the effect of immune activation on group dynamics in pigs. Animal 15, 100332. https://doi.org/10.1016/j.animal.2021.100332 (2021).
-
Rhim, S. J., Son, S. H., Hwang, H. S., Lee, J. K. & Hong, J. K. Effects of mixing on the aggressive behavior of commercially housed pigs. Asian-Australas. J. Anim. Sci. 28, 1038–1043 (2015).
-
Camerlink, I., Turner, S. P., Farish, M. & Arnott, G. The influence of experience on contest assessment strategies. Sci. Rep. 7, 14492. https://doi.org/10.1038/s41598-017-15144-8 (2017).
-
Bond, A. B., Kamil, A. C. & Balda, R. P. Serial reversal learning and the evolution of behavioral flexibility in three species of North American corvids (Gymnorhinus cyanocephalus, Nucifraga columbiana, Aphelocoma californica). J. Comp. Psychol. 121, 372–379 (2007).
-
Mesarec, N., Povše, M. P., Škorjanc, D. & Skok, J. Gangs of piglets: Welfare and growth of imprinted and guided weaners. Appl. Anim. Behav. Sci. 195, 44–49 (2017).
Acknowledgements
This project was funded by a BBSRC grant awarded to S.T. and G.A. (SRUC: BB/T001046/1; QUB: BB/T000716/1). SRUC also receives support from the Scottish Government Strategic Research Programme. L.O. was funded by a PhD studentship from SRUC with additional funding for experimental work from Queen’s University Belfast.
Author information
Authors and Affiliations
Contributions
LO: Conceptualization, Investigation, Methodology, Writing –original draft. SA: Guidance on social network analysis, Writing- review & editing. GA: Conceptualization, Funding acquisition, Supervision, Writing – review & editing. MB: Investigation, Methodology. IC: Methodology, Supervision, Writing – review & editing. AW: Methodology, Supervision, Guidance on social network analysis, Writing- review & editing. AF: Investigation, Methodology, Project administration. VEL: Conceptualization, Investigation, Methodology, Writing – review & editing. SPT: Conceptualization, Funding acquisition, Methodology, Project administration, Supervision, Writing – review & editing.
Corresponding author
Ethics declarations
Competing interests
The authors report no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Oldham, L., Agha, S., Arnott, G. et al. Cognitive and non-cognitive factors predict pigs’ positions in an aggression social network.
Sci Rep 15, 17439 (2025). https://doi.org/10.1038/s41598-025-02023-w
-
Received:
-
Accepted:
-
Published:
-
DOI: https://doi.org/10.1038/s41598-025-02023-w
This post was originally published on this site be sure to check out more of their content