Next Article in Journal
Fusion of Multiple Lidars and Inertial Sensors for the Real-Time Pose Tracking of Human Motion
Previous Article in Journal
Noise Suppression in Compressive Single-Pixel Imaging
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis of Cattle Social Transitional Behaviour: Attraction and Repulsion

1
School of Electrical Engineering and Telecommunications, University of New South Wales, High St, Kensington, NSW 2052, Australia
2
Data61, Commonwealth Scientific and Industrial Research Organisation (CSIRO), Marsfield, NSW 2122, Australia
3
Agriculture and Food, Commonwealth Scientific and Industrial Research Organisation (CSIRO), Armidale, NSW 2350, Australia
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(18), 5340; https://doi.org/10.3390/s20185340
Submission received: 17 July 2020 / Revised: 9 September 2020 / Accepted: 15 September 2020 / Published: 18 September 2020
(This article belongs to the Section Remote Sensors)

Abstract

:
Understanding social interactions in livestock groups could improve management practices, but this can be difficult and time-consuming using traditional methods of live observations and video recordings. Sensor technologies and machine learning techniques could provide insight not previously possible. In this study, based on the animals’ location information acquired by a new cooperative wireless localisation system, unsupervised machine learning approaches were performed to identify the social structure of a small group of cattle yearlings ( n = 10 ) and the social behaviour of an individual. The paper first defined the affinity between an animal pair based on the ranks of their distance. Unsupervised clustering algorithms were then performed, including K-means clustering and agglomerative hierarchical clustering. In particular, K-means clustering was applied based on logical and physical distance. By comparing the clustering result based on logical distance and physical distance, the leader animals and the influence of an individual in a herd of cattle were identified, which provides valuable information for studying the behaviour of animal herds. Improvements in device robustness and replication of this work would confirm the practical application of this technology and analysis methodologies.

1. Introduction

Studying individual interactions in animal groups improves our understanding of social dynamics, networks, and hierarchies. The outcomes of such research applied to livestock groups can potentially improve livestock productivity, enhance management practices, and provide scientifically-validated recommendations for regulations and legislation of the farming industry [1]. Cattle are typically social animals, living within groups in either intensive or pasture-based farming systems. Social relationships between individual cattle have been reported [2,3,4] as well as differences in dominance status [5,6,7]. Leaders and followers have been identified during grazing movement patterns within groups of cattle where age, dominance, and social position can affect which individuals are the most influential [6]. While social networks can have positive benefits to the group through affiliative bonds, they can also create social tension which can result in aggression and competition [2]. Competitive behaviours can impact resource access in group settings, which may have negative implications for production animals [8]. The ability to measure social relationships will enable a greater understanding of how individuals within a group influence each other, which may inform improvements in management practices, housing design, and resource provision.
Behavioural analysis of animals is non-trivial. Accurately observing animal behaviour requires minimal human interference, and reliance on visual observations alone can be subjective and unreliable [9]. The feasibility of live observations and time-consuming processing of video recordings can limit the continuity of data able to be collected. The development of automated data collection using devices that are attached to animals has enabled greater insight into both individual and group behaviours not previously possible, although they cannot reliably detect all behaviours that a human-observer can [10]. Many studies have validated the application and value of on-animal accelerometer devices that can automatically quantify exhibited behaviours of cattle such as lying, grazing, ruminating and walking [11,12]. Robust devices are available commercially with the potential to monitor animals in research settings and on-farm to detect changes in typical behavioural time budgets that could be indicative of underlying problems such as poor health [13]. Automated devices that can reliably quantify animal positioning patterns relative to their conspecifics represent an avenue for understanding beyond the individual to quantify social relationships, interactions between animals, group cohesion and identify leaders that may influence group behaviour.
Social networks and/or movement patterns in cattle have previously been determined using a range of methodologies, including live observations of proximity, leader animals, and scoring of social rank [4,6,14], GPS data [7,15], image analysis of proximity based on unmanned aerial vehicle (UAV) footage [16], and collar devices that register at antennas [3,17]. On-animal contact or proximity loggers using ultra-high frequency signals are a technology that researchers are increasingly using to monitor social interactions and networks in cattle. This facilitates understanding of group affiliative or avoidance relationships [18], male–female interactions to detect oestrous [19], associations between maternal and pregnant cows [20], and cow–calf interactions [21]. However, the data from proximity loggers can be prone to error [22], signals can be interfered with by metal or other animals, and they do not provide exact geo-spatial animal positioning. The spatial movement patterns and interactions of animals measured by precise positioning systems with a high update rate present opportunities to quantify animal behaviour automatically and more accurately [23,24], and provide insights that cannot be obtained from visual classification alone [3,17].
Data generated from both proximity, GPS, and localisation devices can total thousands of registered datapoints and traditional methods of analysis may be insufficient for revealing potential patterns of group behaviour. Machine learning, in particular, unsupervised learning or clustering, has been applied to process the location data of animals, to study survival status, living habits, migration range and path of animals, to obtain knowledge of animal behaviour and social interactions [25,26]. ‘Big data’ techniques also have many potential applications for improvements in livestock husbandry systems as detailed in several reviews [27,28]. Machine learning algorithms such as stratified cross validation (SCV) approaches, binary trees, linear discriminant analysis classifiers, and decision trees have been applied to data from on-animal devices to reliably classify different behavioural patterns such as chewing variation or types of activity (e.g., [29,30,31,32]), or to GPS data to detect grazing, resting, and walking [33]. Machine learning has also been applied to determine if changes in behavioural patterns as detected by on-animal sensors could predict life events such as calving [34] or health problems such as lameness [35]. Physiologically, machine learning has been applied to detect estrous via vaginal sensors [36] and can also be used for management decisions such as the prediction of insemination outcomes [37]. Machine learning techniques are applied to positional data which could also provide new insights into the behaviour of herds. For example, K-means clustering has been applied to classify cows into active and inactive groups [38]. Hierarchical clustering was applied to the dissimilarity produced by Dynamic Time Warping to analyse the moving patterns of hens [39] and the ‘routine’ behaviour patterns of free-range laying hens were identified with clustering algorithms [40]. However, none of these studies have been able to analyse the interactions in a dynamic and unstable state.
Although a local-position measurement system and positional loggers have been used for some research [3,17], in most studies, the geo-spatial locations of individual animals were obtained by the GPS system, which may not provide enough information about the social behaviour of livestock due to the low positioning accuracy (typically 2–5 m). Other systems [17] can provide higher accuracy than GPS but have a limited operating range. Furthermore, proximity loggers (e.g., [22]) cannot quantify the closeness between animals because they only provide binary information as to whether two animals are within a predefined distance of each other.
Thus, the purpose of this research was to develop an efficient and accurate approach to study the social behaviour of cattle groups based on the novel application of a high-accuracy wireless tracking system and the latest machine learning technologies. Novel data analysis algorithms were developed and applied to the experimental data, which enabled the parameterising and visualising of the bonding between different animals, the influence of individual animals, and the strong repulsion (or avoidance) between individuals.

2. Experimental Design and Data Capture

2.1. Ethical Statement

The experiment was approved by the CSIRO FD McMaster Laboratory Chiswick Animal Ethics Committee prior to the start of the experimental period (ARA 18-06).

2.2. Animals and Experimental Protocol

The experiment took place at the Chiswick research site (Armidale, NSW, Australia) of the Commonwealth Scientific and Industrial Research Organisation (CSIRO) in August 2018 (late autumn, clear skies with no rain, maximum 18 ° C) in a rectangular-shaped grassed test paddock ( 150 × 50 m). A single group of three Angus steers and seven Angus heifers (approximately 12–18 months old, mean body weight ± SE 261.2 ± 10.1 kg, in visibly healthy condition), were painted with an identification number on each flank using livestock tail paint (Leader Products Pty Ltd., Craigieburn, VIC, Australia) and fitted (in a crush) with a wireless device that consisted of a GPS receiver module for coarse localisation (and also for benchmarking purposes) and a custom-designed wireless transceiver for fine-grained localisation and tracking. The wireless tracking assemblies were attached to a girth strap (using cable ties) that was fitted to the animal just behind the forequarter (Figure 1). The animals were socially acclimatised to each other as they had been living together in the test paddock for 10 weeks prior to the trial (including two additional animals not used in the trial due to device availability). On Day 1, the animals were fitted with the devices and placed into the test paddock for approximately four hours to validate that the system was functioning correctly and allow acclimation to the devices. A water trough was present in the paddock. The devices were removed to be charged overnight and the animals were presented with a concrete trough of feed in the yards to become acclimated to obtaining feed in a competitive feeding set-up. The small concrete trough (535 mm diameter 295 mm height) restricted access to feed (lucerne hay on top, oaten chaff mixture inside) to 3 to 4 animals at a time. On Day 2, the animals were again led into the test paddock with access to the feed trough containing approximately 5 kg of the chaff mixture. The animals approached and started feeding and jostling for access to feed almost immediately. Positions were recorded on the devices during two competitive feeding situations for approximately 25 min each to validate device functionality and recording in this scenario. Animals were brought back for device removal and battery charging overnight. On Day 3, the animals were refitted and led from the yards into the paddock by a handler carrying hay for a final competitive feeding scenario which comprised the data analysed in this study. The animals walked away from the feed once it was all consumed. The data were recorded for 25 min starting from when all animals left the yards and were walked down into the paddock (see Figure 2 for animal movement trajectories).

2.3. The Wireless Tracking Platform

The instantaneous location of each animal was captured with a custom-designed localisation platform which provided a positioning accuracy and coverage that significantly outperforms commercially available systems. The fitted device (Figure 1) contained a GPS module and a ‘wireless ad-hoc system for positioning’ (WASP) node [41] developed by the CSIRO. The WASP system operated in the 5.8 GHz ISM band, utilising a bandwidth of 125 MHz for range measurements based on time-of-arrival (TOA). Each unit was 12 cm × 8 cm × 4 cm in dimension and weighed about 400 g. The devices formed a multi-hop ad-hoc network during operation, allowing all the available ranging information between pairs of nodes to be collected. Detailed information about the WASP system can be found in [41] and references therein. The locations of animals were estimated offline by fusing GPS position measurements and the relative range measurements obtained by the WASP system with an Extended Kalman Filter (EKF) [42]. The details are provided in Appendix A . The system can locate the animals to an accuracy of 15 cm, which provides precise spatio-geometry information about the group that cannot be obtained otherwise, e.g., by using GPS alone.

3. Data Analyses

The data used for analyses were recorded during one 25-min competitive feeding scenario with the 10 animals during the morning. To characterise the closeness between pairs of animals, a logical distance was defined based on the ranking of physical distances. Two clustering algorithms were then performed to study the social behaviour of animals: K-means clustering based on dimension reduction and agglomerative hierarchical clustering. K-means clustering was also applied based on the physical locations of animals, where each group contained the animals that were physically close to each other.

3.1. Graph-Theoretic Interpretation of Intra-Group Closeness

To measure the (logical and statistical) closeness between any pair of animals in the experimental group, the ranks of their distance were used with reference to their respective distances to the rest of the group. At every time instance, the ranks were recorded, with these ranks indicating how closely two animals preferred to stay together and interact throughout the experimental period. Because the animals could roam throughout the test paddock, the physical distances could vary drastically, rendering them less meaningful and potentially biased or distorted, thus ranks were used.
Using the distance ranking of every animal with respect to every other animal in the experimental group, a normalised average distance ranking of any animal i was evaluated with respect to animal j ( i j ) to measure the closeness of animal i to animal j, as given by
W i j = t = 1 T R i j ( t ) T ,
where R i , j ( t ) denotes the ranking of the distance of animal i with respect to j ( i j and 1 i , j N ) at timeslot t. The total number of animals in the group was N = 10, so 1 W i , j 10 . Here, W i , j was not necessarily equal to W j , i ( i j ). This was because two animals could have different social attachments towards each other and one of them may value the bond more than the other. An N-dimensional square matrix W was then constructed from W i , j , which could be graph-theoretically interpreted as a bidirectional, weighted graph representing the overall closeness between pairs of animals.

3.2. K-Means Clustering Based on Dimension Reduction

Multidimensional scaling (MDS) is an effective means of visualising the level of similarity between samples in a dataset [43]. It has been widely used to translate the pairwise “distances” among a set of samples into a constellation of points mapped into an abstract Cartesian space [44]. MDS was applied to transform the N × N matrix W into an N×2-dimensional matrix denoted by X , each row of which represented the position of an animal in an abstract 2-D space, which could be used to cluster the animals and reveal their social bond. To the best of the author’s knowledge, this clustering over a bidirectional and (differently) weighted graph has not yet been published in the literature.
A symmetric matrix D was first constructed from W , with D i , j = W i , j × W j , i . Then, a matrix B was defined as follows [43]
B = 1 2 C D 2 C ,
where D 2 ( i , j ) = D i , j 2 was the square of dissimilarity (distance) of animal i with respect to j, C = I N 1 N J N , 1 J 1 , N , I N was an N × N identity matrix, and J N , 1 was the N × 1 all-one vector. By taking the eigenvalue decomposition of B , i.e., B = V Λ V , a 2D representation could be made of the edge weight matrix as given by
X = Λ 2 1 2 V 2 ,
where Λ 2 was a diagonal matrix constructed from the two largest eigenvalues in Λ , V 2 were the corresponding eigen vectors in the columns of V , the superscript ( · ) stood for transpose.
Inspection of X in the 2D abstract Cartesian space identified the behavioural similarities (closeness) between the animals. The K-means clustering algorithm was first applied [45] to reveal the animals that had a stronger bond with each other than with the rest of the group. The number of clusters was specified by K, also referred to as a “K-value” [46]. Given the K-value, K-means clustering randomly selects K points as the initial centroids and evaluates the distance from every sample to the K centroids one after another. Then, the centroids of the clusters are re-evaluated, and the clusters of the rest of the samples are updated accordingly [47]. This repeats until the clusters stop changing. During the analysis, the number of clusters K was chosen automatically with silhouette analysis.
The variation of the distance ranking of the animals throughout the experimental period was also further analysed to understand repulsion between some individuals. A new asymmetric square matrix, D v , capturing the variation between any pair of animals was given by
D v ( i , j ) = 1 T t = 1 T 1 R i , j ( t ) 1 T t = 1 T 1 R i , j ( t ) 2 ,
where R i , j ( t ) was the ranking animal i with respect to j at timeslot t, as defined earlier. The matrix indicated the amount of variation or dispersion between the connection of animal pairs. Following the method described in Section 3.2, D v ( i , j ) was converted into a symmetric matrix based on S i , j = D i , j × D j , i and then MDS and K-means clustering were applied to study the repulsions.

3.3. Agglomerative Hierarchical Clustering

Agglomerative Hierarchical Clustering (AHC) is a bottom-up clustering method that can classify the samples based on pair-wise distances (or also known as “affinity”) [48]. At the beginning of the AHC operations, each sample is considered as a single cluster. Then the two closest clusters are selected to merge in each iteration until only a single cluster remains (referred to as the “root node”). Finally, AHC can establish a dendrogram which is a one-dimensional tree to display the closeness (or similarity) of an individual to its closet (or most similar) cluster [49].
To apply the AHC algorithm, the affinities between the animals were first defined. This started by defining the outdegree which characterised the correlation from an animal to a cluster, and the indegree of an animal from a cluster that reflected the density near the animal [50].
For any animal i, the average indegree from cluster C and the average outdegree to the cluster were defined as
d e g i ( C ) = 1 | C | j C W j , i d e g i + ( C ) = 1 | C | j C W i , j
where d e g i + ( C ) stood for the indegree from C to animal i, and d e g i ( C ) stood for the outdegree from an animal to the cluster C. | C | was the size of C . and W j , i was the weighting coefficient of j and i defined earlier. If cluster C contained animal i, both the indegree and outdegree were expected to be large. Therefore, the affinity between cluster C and animal i could be measured by the product of the indegree and outdegree [50]:
A i C = d e g i ( C ) × d e g i + ( C ) .
Likewise, the affinity between two clusters C a and C b ( a b ) could be given by
A C b C a = j C b d e g i ( C a ) × d e g i + ( C a )
Based on the weighting coefficients in Table 1, a symmetric affinity between clusters C a and C b could be written as
A C a , C b = A C b C a + A C a C b .
At the beginning of AHC, every animal formed a cluster of its own, and the indegree and outdegree of the cluster were d e g i = W j , i and d e g i + = W i , j , respectively. Based on (8), the affinity between two clusters was A i , j = A i j + A j i = W i , j × W j , i . Then, clusters started to merge with each other based on the maximum affinity until only a single cluster remained [51], as described earlier.

3.4. Herd Behaviour Based on Geo-Spatial Locations

In addition to the logical distances defined in Section 3.1, the K-means clustering technique was also performed based on the physical locations of animals, and each group contained the animals physically close to each other. The clustering algorithm was performed on the positional data at a number of time instances that were 1500 timeslots (150 s) apart, as indicated in Figure 2. The statistics on the relative positions between animals (e.g., an animal stays close to others, multiple animals stay close together) were studied, which provided information on the connections and social status of the animals.

4. Results

4.1. Captured Positional Data

The location estimations were generated at a fixed rate of 10 Hz during the experiments, which included the x- and y-coordinates and the associated timestamp. A total of 17,933 valid position records were obtained for each animal during one 25-min competitive feeding scenario. Figure 2 shows the trajectory of each animal during the period.

4.2. Graph-Theoretic Interpretation of Intra-Group Closeness

Table 1 shows the closeness between every pair of animals in the experiment as characterised by w i , j defined in Section 3.1. Each row represents the degree of attention that one animal attracted from each of the other individuals. Each column shows the degree of attention from the other animals to the animal. The values in the table can be interpreted as the weights of the directional edges in a bidirectional, weighted graph, where the vertices stand for individual animals and the edges indicate the closeness of different pairs of the animals as plotted in Figure 3.

4.3. K-Means Clustering Based on Dimension Reduction

Figure 4 illustrates the relative closeness between animals in an abstract 2D space obtained by MDS, along with the result of K-Means clustering. It is shown that animal 6 was at the centre of the group, indicating it was the statistically closest animal to the rest of the group throughout the experiment. In other words, animal 6 was the most influential individual of the group, with the majority of the rest of the group preferring to be around it and follow its movements, for example, animals 2, 3, 4, 5, and 9. In contrast, a few animals, i.e., animals 1 and 7, displayed strong separation. Animals 8 and 10 were grouped into one cluster; animals 2 to 6 and 9 formed another cluster; and animals 1 and 7 were two separate clusters.
Figure 5 shows the result of mapping the deviation matrix (i.e., D v in (4)) to a two-dimensional space by utilising MDS, where the x and y-axes indicate the logical coordinates of each animal. This shows that animals 1 and 7 were both close to animal 6. This indicates that the closeness between them stayed unchanged. The rankings between animals 6 and 2, animals 6 and 5, and animals 6 and 4 experienced a medium level of variation. By comparing it with Figure 4, where animals 2, 4, 5, and 6 were logically close to each other and grouped into the same cluster, we presume that animals 2, 4, 5, and 6 could have a similar level of social status.

4.4. Agglomerative Hierarchical Clustering

Figure 6 shows the resulting dendrogram of AHC of the experimental data, where the x-axis indicates the number of animals, and the y-axis quantifies the dissimilarity between different clusters. This figure shows that animals 8, 9 and 10 were “closer” to each other than the rest of the group, as were animals 2, 4, 5, and 6. The results are similar to those shown in Figure 4. Compared to the one-dimensional result of AHC, one advantage of using MDS is that the two-dimensional logical coordinates and distances between animals can be visually seen.

4.5. Herd Behaviour Based on Geo-Spatial Locations

Figure 7 shows the results of physical position-based K-means clustering applied to the snapshots indicated in Figure 2. The number of clusters was 4. The red-circled points are the location of the animals which were closest to the centroids and considered the “connectors”.
The same approach was applied to all timeslots within the captured dataset, and the statistics on the results are shown in Figure 8, Figure 9 and Figure 10.
It can be seen from Figure 8 that the majority of the animals spent most of their time in a cluster with three or four members, but the proportion of time spent alone varied. This can be better observed in Figure 9 which indicates the number of instances that an animal stayed alone (i.e., did not form a cluster with any other animals according to the K-means clustering analysis). This shows that animals 1 and 7 spent most of their time alone, totaling 6690 and 3842 timeslots respectively (out of the total 17,933 timeslots). This indicates that animals 1 and 7 were less connected to the others. Figure 10 shows the number of timeslots that an animal stayed with another animal in the same cluster. Animal 6 was most closely related to the other animals, because it had the greatest number of animals that were highly bonded with it. Additionally, animals 1 and 7 had a smaller number of animals that appeared in the same cluster as them over time, indicating they were less connected with the others. The other animals had a similar number of animals that they were connected with, suggesting that they had no significant preference. These outcomes show similar patterns as the results of MDS shown in Figure 4, where animal 6 was in the centre of the abstract 2D space, and animals 1 and 7 were treated as two separate clusters due to their larger distances from the others. It can be presumed that animal 6 was the most influential one, whereas animals 1 and 7 were less connected to the other animals and were highly repelled by animal 6.

5. Discussion

This study applied novel wireless localisation devices to measure the geo-spatial locations across time of a group of 10 yearling cattle at fine spatial resolution during walking from the yards into a paddock area where a competitive feeding set-up was placed. The data points collected across the 25-min study period were analysed with two machine learning clustering algorithms both of which demonstrated that one animal was most influential or central within the group, that animals preferred to be in groups of 3 or 4 individuals, and that two individuals spent more time alone and were likely repelled by the central individual. This first application of these devices and analysis methods demonstrate the information that can be gained about social interactions and networks in animal groups from short observation periods.
The wireless tracking system used in the experiment combined a range-based positioning system (WASP) and GPS receivers for improved accuracy. It was robust against measurement errors by exploiting all available measurements, including the pairwise range measurements between animals. To obtain positioning data with the highest quality for analyses, several repeated measurements were conducted on the animals and those with outage or accuracy loss in GPS measurements were excluded. Average spatial accuracy of 15 cm was achieved in these outdoor experiments which is greater than previous reports of 50 cm accuracy in cattle sensor systems [3,17]. However, these systems were used indoors, and the WASP system would have similar accuracy of 50 cm if used inside due to the reflection of radio signals off metal structures. The operation range of the system is mainly determined by that of the WASP devices, which lies between 50 and 100 m in outdoor environments. A WASP device can only be located if it can measure ranges to three or more anchors (which are WASP devices deployed at known locations). However, range measurements between animals can be exploited to locate those that do not have enough anchors in range and improve the positioning accuracy, as was done in the current experiment. The coverage area of the system could be extended arbitrarily with proper deployment of anchors. The system during the trials had a limited battery life of two hours. This time could be extended in future trials by using larger batteries but device size would be dependent on the bodyweight of the animals used to ensure minimal effects on the animal’s behaviour.
Benefitting from the high positioning accuracy, the data analysis performed in the paper was based on the geo-spatial positions of individual animals, which provides more precise information on the interactions between animals than proximity loggers [22]. In addition, a logical distance was introduced to characterise the closeness between animals, which delivers more accurate and robust results than using physical distances [7]. In particular, the relative positions between animals may be scale-invariant, i.e., the geometrical topology of the animal group could enlarge/shrink depending on the animals’ activity while the relative closeness among animals remains unchanged. Using logical distance enables accurate identification of the social structure of an animal group undergoing different activities, such as grazing, resting, and walking to new areas. It is shown that the results obtained with logical distances were similar to those obtained with physical distances in our experiment. Further research could be conducted to validate the advantage of using logical distances on experiments of extended durations.
The machine learning analyses in this study demonstrated that one animal was central to the group with an influence on other group members. This is similar to other studies of cattle behaviour where certain individuals have social centrality and/or influence on the group’s behaviour [6,18]. An animal may have a strong influence as a result of age, dominance, or sex [6,52], but it is unknown why animal 6 in this study was an influential individual. Animals were of similar ages and animal 6 was not the only female in the mixed-sex group. Animals 1 and 7 were identified as more isolated from the rest of the group and they were also female, but the remaining females (n = 4) were similarly grouped with the steers. Animal 6 may have been the most dominant, but this would need to be confirmed across different scenarios. Further testing of temperament and dominance of all individuals may clarify reasons for certain individuals to be central versus excluded including subsequent potential impacts on their welfare such as affective state and stress reactivity [53]. The presence of both affiliative and avoidance (or repulsive) relationships are similar to results found in dairy cattle using data obtained from video observations, or proximity sensors [2,3,18]. Previous research has also demonstrated that not all individuals have strong social preferences [3,17]. Social relationships could develop through similar preferences for specific resources and areas [3,4] or observed social proximity greater than expected by chance could just be an artifact of similar resource use patterns such as preferred pasture grazing areas [4]. Boyland et al. [18] did confirm that social associations measured by proximity loggers were significantly correlated with the degree of allogrooming but not with observed agonistic interactions. The resolution and frequency of interactions obtained by the devices in the current study may be better able to detect subtle social effects thus improving the ability to quantify all types of social relationships.
The relationships in the current study were determined over a 25-min period. Previous research from video observations indicated social relationships were moderately to strongly stable across two observation periods six months apart [2], but proximity loggers showed dynamic social relationships in dairy cattle where group composition was continually changing [18]. Rocha et al. [17] monitored dairy cattle across a 17-week period using sensors and showed stability in social relationships across this period in a fixed group but the relationships depended on the area in which the contacts were recorded. The established networks and associations were also disrupted when group composition was changed through the introduction and removal of some individuals [17]. It is unknown if the relationships identified in this study would be repeatable across time and across different situations. The cattle in this study had been housed as a group of 12 individuals but only 10 devices were available for the study. The role of the other two individuals excluded from the assessment is unknown. If stable social relationships could be confirmed from one short sampling period, then this could dramatically reduce the direct animal handling and observation time needed to quantify differing social positions of specific individuals.
The results from one study period of a short duration indicated that social interactions could be quantified and animals of different social positions within the group identified. While the devices applied in this study are not yet practically feasible to apply longer-term, or in a commercial scenario, similar to other wireless tracking technologies [54], there is high value in continued research. Precise data on a finer-scale resolution than what GPS devices provide could be used in future studies to further understand the role of individuals within groups and why some animals may be central to the network versus repelled. Correlations between social interactions and multiple physiological and behavioural assessments could determine if more time spent alone is indicative of illness or differing personality traits, coping styles, or affective states. These repelled individuals could present higher stress levels and potentially lower growth or productivity. Removal of either central or repelled individuals could have contrasting impacts on the behaviour and welfare of the group. Additionally, further testing could confirm if individuals classified as central or repelled in one group maintain a similar position if moved to a new group of individuals.
The application of the findings from this study and demonstration of the technology and data analysis techniques was limited due to the use of one group for a relatively short period. The period of study (25 min) was restricted by the power requirements as the prototype devices require frequent sampling to ensure high accuracy and this drains the battery and limits the potential for long-term deployment. In addition, the robustness of the prototypes to withstand cattle damaging the casing from rubbing or social interaction are needed for longer-term application in a paddock situation. Another consideration is that no assessment of the impact of the attachment of the girth and devices was conducted and while cattle did not appear to be agitated or affected by the attachment of the devices, there is the possibility that social behaviour may have been impacted. With the development of a more robust weatherproof device with greater battery power, a widespread application could be achieved.

6. Conclusions

In this paper, based on the location information acquired by cooperative wireless localisation, machine learning algorithms were applied to analyse the social structure of a herd of cattle and the social behaviour of the individuals. These algorithms mined the location information related to social attraction and repulsion and were able to quantify the affinity of cattle for one another within a group. Social networks were present in the small herd of cattle, and the localisation devices provided more accurate information than would otherwise be obtained from just video recordings or live observations, such as animals with greater affinity and influence on others. Replication with the devices across more groups and repeatability within groups across different settings would confirm the value of quantifying social interactions with this degree of precision. Further work is needed to apply the devices for extended periods of time, as well as improve the robustness of the devices to be deployed on animals.

Author Contributions

Conceptualisation, C.L. and W.N.; methodology, C.L. and D.L.M.C.; software, D.A.; validation, H.X. and S.L.; formal analysis, H.X. and W.N.; investigation, M.J. and J.M.L.; writing—original draft preparation, H.X.; writing—review and editing, W.N., S.L., C.L., D.L.M.C. and J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Science and Industry Endowment Fund (SIEF). The work of J. Yuan was supported in part by the Australian Research Council Discovery Projects under Grant d DP190101363 and in part by the Linkage Project under Grant LP170101196.

Acknowledgments

The authors would like to thank Troy Kalinowski, Tim Dyall, Dominic Niemeyer, and Alija Kajan (CSIRO) for assistance in set-up and data collection procedures.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

This section describes the EKF-based sensor fusion algorithm use in Section 2.3, which combines GPS position measurements and relative range measurements for accurate animal tracking. The state of the EKF at each time step k is defined as the aggregated positions and velocities of all animals as follows
x k p k 1 v k 1 p k N v k N ,
where p k i and v k i (i = 1,…,N) denote the i-th animal’s position and velocity at time step k, respectively; and N is the total number of animals. The transition model of the EKF is given by the following constant velocity model
x k + 1 = A x k + u k .
where A is an N-element block-diagonal matrix with each sub-matrix as given by
A = I 2 Δ t I 2 0 2 I 2 ,
with I 2 and 0 2 denoting the two-dimensional identity matrix and zero matrix, respectively. Δ t is the interval between time steps k and k + 1 . u k represents the random velocity change between time steps k and k + 1 , as given by
u k = 0 2 z k 1 0 2 z k N ,
where z k i follows a zero-mean Gaussian distribution with covariance Σ x .
The EKF is updated with GPS position measurements and relative range measurements, using the following (linearised) observation models, as given by
p k GPS = H GPS x k + v k GPS ,
d k i , j = p k , i p ^ k , j + H i , j ( x k x ^ k ) + v k i , j , i , j { 1 , , N } , i j ,
where p k GPS aggregates the x- and y-coordinates of all animals measured by the GPS; H GPS is an N-element block-diagonal matrix with each sub-matrix as given by
H GPS = [ I 2 , 0 2 ] ,
where v k GPS N ( 0 , Σ ) v characterises the GPS positioning error; d k i , j denotes the range measurement between the i-th animal and j-th animal; p ^ k , i and x ^ k denote the estimated position of the i-th animal and the estimated EKF state at time step k, respectively;
H i , j = e 2 i 1 2 N ( p k , i p ^ k , j ) T p k , i p ^ k , j e 2 j 1 2 N ( p k , i p ^ k , j ) T p k , i p ^ k , j ,
where e i 2 N denotes a 2 N -dimensional unit row vector with the i-th element equal to 1, ⊗ denotes the Kronecker product; and v k i , j N ( 0 , σ k , i , j 2 ) is the measurement error associated with d k i , j .

References

  1. Koene, P.; Ipema, B. Social Networks and Welfare in Future Animal Management. Animals 2014, 4, 93–118. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Foris, B.; Zebunke, M.; Langbein, J.; Melzer, N. Comprehensive analysis of affiliative and agonistic social networks in lactating dairy cattle groups. Appl. Anim. Behav. Sci. 2019, 210, 60–67. [Google Scholar] [CrossRef]
  3. Gygax, L.; Neisen, G.; Wechsler, B. Socio-Spatial Relationships in Dairy Cows. Ethology 2010, 116, 10–23. [Google Scholar] [CrossRef]
  4. Stephenson, M.B.; Bailey, D.W.; Jensen, D. Association patterns of visually-observed cattle on Montana, USA foothill rangelands. Appl. Anim. Behav. Sci. 2016, 178, 7–15. [Google Scholar] [CrossRef]
  5. Harris, N.R.; Johnson, D.E.; McDougald, N.K.; George, M.R. Social associations and dominance of individuals in small herds of cattle. Rangel. Ecol. Manag. 2007, 60, 339–349. [Google Scholar] [CrossRef]
  6. Sueur, C.; Kuntz, C.; Debergue, E.; Keller, B.; Robic, F.; Siegwalt-Baudin, F.; Richer, C.; Ramos, A.; Pelé, M. Leadership linked to group composition in Highland cattle (Bos taurus): Implications for livestock management. Appl. Anim. Behav. Sci. 2018, 198, 9–18. [Google Scholar] [CrossRef]
  7. Šárová, R.; Špinka, M.; Panamá, J.L.A.; Šimeček, P. Graded leadership by dominant animals in a herd of female beef cattle on pasture. Anim. Behav. 2010, 79, 1037–1045. [Google Scholar] [CrossRef]
  8. Llonch, P.; Mainau, E.; Ipharraguerre, I.R.; Bargo, F.; Tedó, G.; Blanch, M.; Manteca, X. Chicken or the Egg: The reciprocal association between feeding behavior and animal welfare and their impact on productivity in dairy cows. Front. Vet. Sci. 2018, 5, 305. [Google Scholar] [CrossRef] [Green Version]
  9. Weary, D.; Huzzey, J.; Von Keyserlingk, M. Board-invited review: Using behavior to predict and identify ill health in animals. J. Anim. Sci. 2009, 87, 770–777. [Google Scholar] [CrossRef] [Green Version]
  10. Rushen, J.; Chapinal, N.; de Passille, A.M. Automated monitoring of behavioural-based animal welfare indicators. Anim. Welf. 2012, 21, 339–350. [Google Scholar] [CrossRef]
  11. Borchers, M.; Chang, Y.; Tsai, I.; Wadsworth, B.; Bewley, J. A validation of technologies monitoring dairy cow feeding, ruminating, and lying behaviors. J. Dairy Sci. 2016, 99, 7458–7466. [Google Scholar] [CrossRef] [PubMed]
  12. Grinter, L.; Campler, M.; Costa, J. Technical note: Validation of a behavior-monitoring collar’s precision and accuracy to measure rumination, feeding, and resting time of lactating dairy cows. J. Dairy Sci. 2019, 102, 3487–3494. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Theurer, M.E.; Amrine, D.E.; White, B.J. Remote Noninvasive Assessment of Pain and Health Status in Cattle. Vet. Clin. N. Am. Food Anim. Pract. 2013, 29, 59–74. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Dumont, B.; Boissy, A.; Achard, C.; Sibbald, A.; Erhard, H. Consistency of animal order in spontaneous group movements allows the measurement of leadership in a group of grazing heifers. Appl. Anim. Behav. Sci. 2005, 95, 55–66. [Google Scholar] [CrossRef]
  15. Guo, Y.; Poulton, G.; Corke, P.; Bishop-Hurley, G.; Wark, T.; Swain, D.L. Using accelerometer, high sample rate GPS and magnetometer data to develop a cattle movement and behaviour model. Ecol. Model. 2009, 220, 2068–2075. [Google Scholar] [CrossRef] [Green Version]
  16. Mufford, J.; Hill, D.; Flood, N.; Church, J. Use of unmanned aerial vehicles (UAVs) and photogrammetric image analysis to quantify spatial proximity in beef cattle. J. Unmanned Veh. Syst. 2019, 7. [Google Scholar] [CrossRef]
  17. Rocha, L.E.; Terenius, O.; Veissier, I.; Meunier, B.; Nielsen, P.P. Persistence of sociality in group dynamics of dairy cattle. Appl. Anim. Behav. Sci. 2020, 223, 104921. [Google Scholar] [CrossRef]
  18. Boyland, N.K.; Mlynski, D.T.; James, R.; Brent, L.J.; Croft, D.P. The social network structure of a dynamic group of dairy cows: From individual to group level patterns. Appl. Anim. Behav. Sci. 2016, 174, 1–10. [Google Scholar] [CrossRef] [Green Version]
  19. O’Neill, C.; Bishop-Hurley, G.; Williams, P.; Reid, D.; Swain, D. Using UHF proximity loggers to quantify male–female interactions: A scoping study of estrous activity in cattle. Anim. Reprod. Sci. 2014, 151, 1–8. [Google Scholar] [CrossRef] [Green Version]
  20. Swain, D.; Patison, K.; Heath, B.; Bishop-Hurley, G.; Finger, A. Pregnant cattle associations and links to maternal reciprocity. Appl. Anim. Behav. Sci. 2015, 168, 10–17. [Google Scholar] [CrossRef]
  21. Swain, D.L.; Bishop-Hurley, G.J. Using contact logging devices to explore animal affiliations: Quantifying cow–calf interactions. Appl. Anim. Behav. Sci. 2007, 102, 1–11. [Google Scholar] [CrossRef]
  22. Watson-Haigh, N.S.; O’Neill, C.J.; Kadarmideen, H.N. Proximity Loggers: Data Handling and Classification for Quality Control. IEEE Sens. J. 2012, 12, 1611–1617. [Google Scholar] [CrossRef]
  23. Porto, S.; Arcidiacono, C.; Giummarra, A.; Anguzza, U.; Cascone, G. Localisation and identification performances of a real-time location system based on ultra wide band technology for monitoring and tracking dairy cow behaviour in a semi-open free-stall barn. Comput. Electron. Agric. 2014, 108, 221–229. [Google Scholar] [CrossRef]
  24. Handcock, R.N.; Swain, D.L.; Bishop-Hurley, G.J.; Patison, K.P.; Wark, T.; Valencia, P.; Corke, P.; O’Neill, C.J. Monitoring animal behaviour and environmental interactions using wireless sensor networks, GPS collars and satellite remote sensing. Sensors 2009, 9, 3586–3603. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  25. Valletta, J.J.; Torney, C.; Kings, M.; Thornton, A.; Madden, J. Applications of machine learning in animal behaviour studies. Anim. Behav. 2017, 124, 203–220. [Google Scholar] [CrossRef]
  26. McVey, C.; Hsieh, F.; Manriquez, D.; Pinedo, P.; Horback, K. Mind the Queue: A Case Study in Visualizing Heterogeneous Behavioral Patterns in Livestock Sensor Data Using Unsupervised Machine Learning Techniques. Front. Vet. Sci. 2020, 7, 523. [Google Scholar] [CrossRef]
  27. Morota, G.; Ventura, R.V.; Silva, F.F.; Koyama, M.; Fernando, S.C. Big data analytics and precision animal agriculture symposium: Machine learning and data mining advance predictive big data analysis in precision animal agriculture. J. Anim. Sci. 2018, 96, 1540–1550. [Google Scholar] [CrossRef]
  28. Neethirajan, S. The role of sensors, big data and machine learning in modern animal farming. Sens. Bio-Sens. Res. 2020, 29, 100367. [Google Scholar] [CrossRef]
  29. Liakos, K.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine Learning in Agriculture: A Review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef] [Green Version]
  30. Rahman, A.; Smith, D.; Little, B.; Ingham, A.; Greenwood, P.; Bishop-Hurley, G. Cattle behaviour classification from collar, halter, and ear tag sensors. Inf. Process. Agric. 2018, 5, 124–133. [Google Scholar] [CrossRef]
  31. Dutta, R.; Smith, D.; Rawnsley, R.; Bishop-Hurley, G.; Hills, J.; Timms, G.; Henry, D. Dynamic cattle behavioural classification using supervised ensemble classifiers. Comput. Electron. Agric. 2015, 111, 18–28. [Google Scholar] [CrossRef]
  32. Pegorini, V.; Zen Karam, L.; Pitta, C.S.R.; Cardoso, R.; Da Silva, J.C.C.; Kalinowski, H.J.; Ribeiro, R.; Bertotti, F.L.; Assmann, T.S. In vivo pattern classification of ingestive behavior in ruminants using FBG sensors and machine learning. Sensors 2015, 15, 28456–28471. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. Williams, M.; Mac Parthaláin, N.; Brewer, P.; James, W.; Rose, M. A novel behavioral model of the pasture-based dairy cow from GPS data using data mining and machine learning techniques. J. Dairy Sci. 2016, 99, 2063–2075. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  34. Borchers, M.; Chang, Y.; Proudfoot, K.; Wadsworth, B.; Stone, A.; Bewley, J. Machine-learning-based calving prediction from activity, lying, and ruminating behaviors in dairy cattle. J. Dairy Sci. 2017, 100, 5664–5674. [Google Scholar] [CrossRef] [PubMed]
  35. Taneja, M.; Byabazaire, J.; Jalodia, N.; Davy, A.; Olariu, C.; Malone, P. Machine learning based fog computing assisted data-driven approach for early lameness detection in dairy cattle. Comput. Electron. Agric. 2020, 171, 105286. [Google Scholar] [CrossRef]
  36. Higaki, S.; Miura, R.; Suda, T.; Andersson, L.M.; Okada, H.; Zhang, Y.; Itoh, T.; Miwakeichi, F.; Yoshioka, K. Estrous detection by continuous measurements of vaginal temperature and conductivity with supervised machine learning in cattle. Theriogenology 2019, 123, 90–99. [Google Scholar] [CrossRef] [PubMed]
  37. Shahinfar, S.; Page, D.; Guenther, J.; Cabrera, V.; Fricke, P.; Weigel, K. Prediction of insemination outcomes in Holstein dairy cattle using alternative machine learning algorithms. J. Dairy Sci. 2014, 97, 731–742. [Google Scholar] [CrossRef] [Green Version]
  38. Schwager, M.; Anderson, D.M.; Butler, Z.; Rus, D. Robust classification of animal tracking data. Comput. Electron. Agric. 2007, 56, 46–59. [Google Scholar] [CrossRef]
  39. Rufener, C.; Berezowski, J.; Sousa, F.M.; Abreu, Y.; Asher, L.; Toscano, M.J. Finding hens in a haystack: Consistency of movement patterns within and across individual laying hens maintained in large groups. Sci. Rep. 2018, 8, 1–10. [Google Scholar] [CrossRef]
  40. Sibanda, T.Z.; Welch, M.; Schneider, D.; Kolakshyapati, M.; Ruhnke, I. Characterising Free-Range Layer Flocks Using Unsupervised Cluster Analysis. Animals 2020, 10, 855. [Google Scholar] [CrossRef]
  41. Sathyan, T.; Humphrey, D.; Hedley, M. WASP: A system and algorithms for accurate radio localization using low-cost hardware. IEEE Trans. Syst. Man Cybern. Part C (Appl. Rev.) 2010, 41, 211–222. [Google Scholar] [CrossRef]
  42. Lefebvre, T.; Bruyninckx, H.; Schutter, J.D. Kalman filters for non-linear systems: A comparison of performance. Int. J. Control 2004, 77, 639–653. [Google Scholar] [CrossRef]
  43. Wish, M.; Carroll, J.D. 14 Multidimensional scaling and its applications. Handb. Stat. 1982, 2, 317–345. [Google Scholar]
  44. Hughes, A.; Ruan, Y.; Ekanayake, S.; Bae, S.H.; Dong, Q.; Rho, M.; Qiu, J.; Fox, G. Interpolative multidimensional scaling techniques for the identification of clusters in very large sequence sets. BMC Bioinform. 2012, 13, S9. [Google Scholar] [CrossRef] [PubMed]
  45. Arora, P.; Varshney, S. Analysis of k-means and k-medoids algorithm for big data. Procedia Comput. Sci. 2016, 78, 507–512. [Google Scholar] [CrossRef] [Green Version]
  46. Kodinariya, T.M.; Makwana, P.R. Review on determining number of Cluster in K-Means Clustering. Int. J. 2013, 1, 90–95. [Google Scholar]
  47. Kanungo, T.; Mount, D.M.; Netanyahu, N.S.; Piatko, C.D.; Silverman, R.; Wu, A.Y. An efficient k-means clustering algorithm: Analysis and implementation. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 881–892. [Google Scholar] [CrossRef]
  48. Sasirekha, K.; Baby, P. Agglomerative hierarchical clustering algorithm-a. Int. J. Sci. Res. Publ. 2013, 83, 83. [Google Scholar]
  49. Rani, Y.; Rohil, H. A study of hierarchical clustering algorithm. Int. J. Inf. Comput. Technol. 2013, 3, 1115–1122. [Google Scholar]
  50. Zhang, W.; Wang, X.; Zhao, D.; Tang, X. Graph degree linkage: Agglomerative clustering on a directed graph. In European Conference on Computer Vision; Springer: Florence, Italy, 2012; pp. 428–441. [Google Scholar]
  51. Murtagh, F. A survey of recent advances in hierarchical clustering algorithms. Comput. J. 1983, 26, 354–359. [Google Scholar] [CrossRef] [Green Version]
  52. Šárová, R.; Špinka, M.; Stěhulová, I.; Ceacero, F.; Šimečková, M.; Kotrba, R. Pay respect to the elders: Age, more than body mass, determines dominance in female beef cattle. Anim. Behav. 2013, 86, 1315–1323. [Google Scholar] [CrossRef] [Green Version]
  53. Finkemeier, M.A.; Langbein, J.; Puppe, B. Personality Research in Mammalian Farm Animals: Concepts, Measures, and Relationship to Welfare. Front. Vet. Sci. 2018, 5, 131. [Google Scholar] [CrossRef] [PubMed]
  54. Kwong, K.H.; Wu, T.T.; Goh, H.G.; Sasloglou, K.; Stephen, B.; Glover, I.; Shen, C.; Du, W.; Michie, C.; Andonovic, I. Practical considerations for wireless sensor networks in cattle monitoring applications. Comput. Electron. Agric. 2012, 81, 33–44. [Google Scholar] [CrossRef]
Figure 1. Some of the cattle fitted with localisation devices on a girth strap including spray-painted individual identification numbers.
Figure 1. Some of the cattle fitted with localisation devices on a girth strap including spray-painted individual identification numbers.
Sensors 20 05340 g001
Figure 2. The trajectory of each animal acquired by cooperative wireless localisation across the 25-min trial period. All trajectories commenced in the upper right corner as animals left the yards and were led into the test paddock by a handler. The red circle and blue circle indicate the locations of feed trough and water trough, respectively. The red “×” marks highlight the animal positions at a number of time instances that are 150 s apart during the experiment.
Figure 2. The trajectory of each animal acquired by cooperative wireless localisation across the 25-min trial period. All trajectories commenced in the upper right corner as animals left the yards and were led into the test paddock by a handler. The red circle and blue circle indicate the locations of feed trough and water trough, respectively. The red “×” marks highlight the animal positions at a number of time instances that are 150 s apart during the experiment.
Sensors 20 05340 g002
Figure 3. The new graph-theoretic interpretation of the closeness of the group of animals in the experiment, where each vertex corresponds to an animal and each directional edge is associated with a weight W i , j to measure the time-averaged closeness of animal i to animal j against the rest of the group, where 1 W i , j 10 .
Figure 3. The new graph-theoretic interpretation of the closeness of the group of animals in the experiment, where each vertex corresponds to an animal and each directional edge is associated with a weight W i , j to measure the time-averaged closeness of animal i to animal j against the rest of the group, where 1 W i , j 10 .
Sensors 20 05340 g003
Figure 4. The locations of 10 cattle in an abstract 2-D space obtained by MDS based on the pairwise affinities. Note that the coordinates on the x and y axes have no physical meaning but indicate the relative closeness between animals. Animals closer to each other in the plot have stronger interactions. The cattle are grouped into four clusters by the K-means clustering algorithms, as indicated by the four different markers.
Figure 4. The locations of 10 cattle in an abstract 2-D space obtained by MDS based on the pairwise affinities. Note that the coordinates on the x and y axes have no physical meaning but indicate the relative closeness between animals. Animals closer to each other in the plot have stronger interactions. The cattle are grouped into four clusters by the K-means clustering algorithms, as indicated by the four different markers.
Sensors 20 05340 g004
Figure 5. Mapping the social interaction variation of each animal pair by using multidimensional scaling. Note that the coordinates on the x and y axis have no physical meaning but indicate the degree of variation for the closeness between animals. Animals close to each other in the plot show a high degree of variation in their social interaction.
Figure 5. Mapping the social interaction variation of each animal pair by using multidimensional scaling. Note that the coordinates on the x and y axis have no physical meaning but indicate the degree of variation for the closeness between animals. Animals close to each other in the plot show a high degree of variation in their social interaction.
Sensors 20 05340 g005
Figure 6. The result of agglomerative hierarchical clustering based on the affinity between animals. The height of the fusion on the y-axis indicates the dissimilarity between two animals/groups. Animals/groups are further away from each other when the height of the fusion is greater.
Figure 6. The result of agglomerative hierarchical clustering based on the affinity between animals. The height of the fusion on the y-axis indicates the dissimilarity between two animals/groups. Animals/groups are further away from each other when the height of the fusion is greater.
Sensors 20 05340 g006
Figure 7. The K-means clustering results at a number of time instances that were 150 s apart during the experiment. The x and y-axes indicate the physical coordinates of each animal, and the “∘”, “★”, “▽”, and “+” symbols represent different clusters. The red-circled points are the locations of the animals that were closest to the centroids and were considered the ‘connectors’.
Figure 7. The K-means clustering results at a number of time instances that were 150 s apart during the experiment. The x and y-axes indicate the physical coordinates of each animal, and the “∘”, “★”, “▽”, and “+” symbols represent different clusters. The red-circled points are the locations of the animals that were closest to the centroids and were considered the ‘connectors’.
Sensors 20 05340 g007
Figure 8. The proportion of time that an animal stayed with other individuals. The x-axis shows the animal number. The proportions of time that an animal was alone or within a cluster which had a different number of members are represented in different colours of the columns.
Figure 8. The proportion of time that an animal stayed with other individuals. The x-axis shows the animal number. The proportions of time that an animal was alone or within a cluster which had a different number of members are represented in different colours of the columns.
Sensors 20 05340 g008
Figure 9. The number of time slots that each animal stayed alone throughout the experimental period of 17,933 time slots.
Figure 9. The number of time slots that each animal stayed alone throughout the experimental period of 17,933 time slots.
Sensors 20 05340 g009
Figure 10. The number of times that each animal was grouped with another as one cluster throughout the experimental period of 17,933 time slots.
Figure 10. The number of times that each animal was grouped with another as one cluster throughout the experimental period of 17,933 time slots.
Sensors 20 05340 g010
Table 1. The closeness between every pair of animals in the experiment as characterised by W i , j . Here  W i , j are unitless values between 0 and 10. Animal i is closer to animal j if W i , j is larger.
Table 1. The closeness between every pair of animals in the experiment as characterised by W i , j . Here  W i , j are unitless values between 0 and 10. Animal i is closer to animal j if W i , j is larger.
W i , j Animal12345678910
Animal
106.063.615.284.454.114.325.796.195.19
26.4305.294.923.523.655.815.344.905.15
35.465.7004.695.194.244.125.814.435.36
46.685.274.9403.624.106.485.234.584.10
56.174.345.264.3503.996.694.364.795.05
66.104.554.714.723.9805.595.275.284.79
74.865.593.284.625.133.5506.755.405.83
86.625.785.294.993.634.797.3103.523.06
97.395.294.654.944.424.816.393.4003.69
106.515.795.614.484.554.656.912.993.490

Share and Cite

MDPI and ACS Style

Xu, H.; Li, S.; Lee, C.; Ni, W.; Abbott, D.; Johnson, M.; Lea, J.M.; Yuan, J.; Campbell, D.L.M. Analysis of Cattle Social Transitional Behaviour: Attraction and Repulsion. Sensors 2020, 20, 5340. https://doi.org/10.3390/s20185340

AMA Style

Xu H, Li S, Lee C, Ni W, Abbott D, Johnson M, Lea JM, Yuan J, Campbell DLM. Analysis of Cattle Social Transitional Behaviour: Attraction and Repulsion. Sensors. 2020; 20(18):5340. https://doi.org/10.3390/s20185340

Chicago/Turabian Style

Xu, Haocheng, Shenghong Li, Caroline Lee, Wei Ni, David Abbott, Mark Johnson, Jim M. Lea, Jinhong Yuan, and Dana L. M. Campbell. 2020. "Analysis of Cattle Social Transitional Behaviour: Attraction and Repulsion" Sensors 20, no. 18: 5340. https://doi.org/10.3390/s20185340

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop