Next Article in Journal
An Intelligent Multimode Clustering Mechanism Using Driving Pattern Recognition in Cognitive Internet of Vehicles
Previous Article in Journal
An Expert System for Rotating Machine Fault Detection Using Vibration Signal Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Information-Theoretic Approach to Detect the Associations of GPS-Tracked Heifers in Pasture

1
Department of Animal Sciences, Livestock Systems, University of Göttingen, 37077 Göttingen, Germany
2
Campus Institute Data Science, 37077 Göttingen, Germany
3
Department of Crop Sciences, Grassland Science, University of Göttingen, 37077 Göttingen, Germany
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(22), 7585; https://doi.org/10.3390/s21227585
Submission received: 20 October 2021 / Revised: 11 November 2021 / Accepted: 11 November 2021 / Published: 15 November 2021
(This article belongs to the Section Smart Agriculture)

Abstract

:
Sensor technologies, such as the Global Navigation Satellite System (GNSS), produce huge amounts of data by tracking animal locations with high temporal resolution. Due to this high resolution, all animals show at least some co-occurrences, and the pure presence or absence of co-occurrences is not satisfactory for social network construction. Further, tracked animal contacts contain noise due to measurement errors or random co-occurrences. To identify significant associations, null models are commonly used, but the determination of an appropriate null model for GNSS data by maintaining the autocorrelation of tracks is challenging, and the construction is time and memory consuming. Bioinformaticians encounter phylogenetic background and random noise on sequencing data. They estimate this noise directly on the data by using the average product correction procedure, a method applied to information-theoretic measures. Using Global Positioning System (GPS) data of heifers in a pasture, we performed a proof of concept that this approach can be transferred to animal science for social network construction. The approach outputs stable results for up to 30% missing data points, and the predicted associations were in line with those of the null models. The effect of different distance thresholds for contact definition was marginal, but animal activity strongly affected the network structure.

1. Introduction

The importance of understanding and decoding the social structures of livestock becomes increasingly important in modern farming [1,2], since the knowledge can help to make species-appropriate management decisions [2,3,4,5]. Social network analysis has been performed to establish the structures of agonistic behavior in pig groups [6,7,8,9], to estimate the spread of diseases in cattle [10,11,12], and to determine the social structures or agonistic behavior of cattle [10,13,14,15,16,17].
Currently, the variety of methods for observing social or agonistic interactions/contacts is increasing enormously. While in previous times, information about social contacts had to be observed manually by humans and thus restricted by space and time, today’s technology allows the tracking of animals and their contacts in a nearly continuous manner. Video, Global Navigation Satellite Systems (GNSSs), such as the Global Positioning System (GPS), or a wireless local positioning system can be used to track animals independent of time and place [18]. Spacial proximity sensors can be used to monitor close contacts of animals [17], whereas new or future algorithms based on artificial intelligence might be even able to identify social interactions such as grooming or agonistic behavior based on video/image data [19].
However, especially for position data such as GNSS, the identification of real interactions is a problem, and associations of animals have to be estimated based on their pairwise distances [1,4]. Often, distance thresholds are determined beyond which two animals are defined to have a contact [1,13,14,15,17]. The definition of this distance threshold is not trivial [1], and by using a large distance, there is a high chance that for all potential pairs of animals, at least some contacts are observed. Limiting this maximum distance beyond which the two animals are regarded as interacting reduces the number of contacts, and more frequent and close contacts/associations might become clearer. However, the minimal distance an animal keeps between itself and members of the same kind, its individual distance or personal space [20,21,22], as well as the amount of social contacts differ individually. Defining contacts solely on a strict distance level emphasizes those animals with a small social distance and might omit associations among individuals preferring larger social distances. Consequently, the counted contacts contain a large amount of false positive/false negative events by using a too small or large distance threshold. These false positive or negative contacts might be regarded as a kind of noise that needs to be eliminated for plausible predictions of animal associations.
In order to overcome these obstacles, the usage of a variety of association measures in combination with different kinds of background models for the proper determination of significant pairwise associations between animals has been applied [16]. As association measures, we have, for example, the simple ratio index, half-weight index, or square root index [23] to set the number of contacts in relation to the total amount of observations. To focus only on the strongest associations, thresholds were set on these measures beyond which the corresponding dyad is eliminated from the resulting social network [1,13,14,15,17]. With the aim to circumvent the arbitrarily set thresholds, the usage of all associations [24] or the utilization of null models to determine significant associations is common [16,24]. However, the results strongly depend on the chosen null model (also known as the background model), a procedure that generates datasets (i.e., by randomization), which in turn, can be used to compare the original data to [25]. Although for some applications, strategies exist to define a proper null model [4,25,26,27], for other problems (newer problems such as GNSS data), determining the most suitable null model remains challenging [26]. Especially for GNSS data, null model construction by randomizing the raw coordinate data is difficult due to the fact that the autocorrelation of the individual tracks has to be considered and the walking paths of animals should not be interrupted [25]. Further, the construction of huge amounts of background data and related networks can be time and space consuming, increasing dramatically with the data resolution, time period of recording, and number of animals.
In molecular biology, the identification of structurally or functionally important protein sites based on sequence information is a challenging task. During the evolution of protein families, alterations of important protein sites are compensated by alterations of other sites, leading to coupled protein positions. These coupled positions, in turn, can be identified based on their co-evolving behavior; however, phylogenetic background and random noise make it difficult to separate protein sites of coupled mutations from randomly altering positions [28]. Targeting this problem, bioinformatic researchers have established the average product correction (APC) for background noise estimation directly on the underlying dataset without any further background model construction for the determination of important protein sites [28]. Originally, the APC procedure was based on the mutual information of protein sites, but has been adopted in another project for the identification of potentially cooperating transcription factors by using pointwise mutual information (PMI) [29]. PMI is an information-theoretic measure that originated in the field of linguistics for the detection of word associations [30,31,32] and is strongly related to the commonly used association measure square root index utilized in social network construction.
To close the loop, today’s sensor technologies enable the automatic tracking of animals and, thus, their social preferences. However, these data are noisy due to measurement errors and the random co-occurrences of animals. The APC procedure is used to eliminate the random noise or phylogenetic background of sequence-based data. Applying this measure to social network construction would enable researchers to estimate the background directly on the dataset by avoiding the construction of arbitrary null models and maintain in an acceptable range of memory and time consumption. Since the APC procedure was designed for information-theoretic measures and the PMI is suited as an association measure for animal pairings by incorporating their individual preferences, the aim of our study was to combine the PMI and APC for the construction of social networks based on the sensor-tracked positioning data of animals.
In order to perform a proof of concept that the combination of both strategies can be adopted in social network construction, we investigated one month of GPS data of grazing heifers and conducted an association study followed by the social network construction of heifers in a pasture.

2. Materials and Methods

All animal treatments were in accordance with EU legislation (Council Directive 86/609/EEC). The sensor technology used was noninvasive and commercially available.

2.1. Animal Housing and Sensor Technology

The study took place in autumn 2019 for 29 days (24 September 2019 00:00 a.m.–22 October 2019 11:59 p.m.) in Lower Saxony, Germany. Eight pregnant heifers (see Table 1) aged between 22 and 25 months were equipped with GPS collars and activity sensors. The heifers were kept on intensively managed pastures together with two other cattle not equipped with sensor technology. The considered pasture had a size of 5 ha and was divided into an eastern (2.4 ha) and a western (2.6 ha) part. At the study start, the eastern part was newly opened and freely accessible to the animals. Before, they spent already 12 days on the western pasture part, fully equipped with sensors for adaptation.
The activity data were tracked using the commercially available activity sensor Ice Tag, (IceRobotics Ltd., https://www.icerobotics.com (accessed on 5 November 2021)), which were designed for research. The device contains a 3-axis accelerometer and has a weight of 130 g [33]. The sampling rate is 16 Hz [33], and we used a 1 min resolution to store animal activity. The sensor was attached to the cows’ rear leg and was used to determine for each sample point the proportion between the cows standing or lying during one time interval (1 min). The activity data were retrieved at the end of the grazing period by using the software IceManager 2014 (Version 3.0.0.1).
As the GPS sensors, we used the commercially available Vertex Plus Collar (battery type 2D, Vectronic Aerospace GmbH, https://www.vectronic-aerospace.com/vertex-plus-collar/ (accessed on 5 November 2021)) for the positioning data. The device stores the Coordinated Universal Time (UTC) date and time, GPS coordinates (longitude, latitude, height), the number of satellites, and the dilution of precision (DOP) for each sample point and has a total weight of about 1280 g (collar and battery). We used a one-minute resolution for position tracking and received the data by using the GPS Plus X software (Version 10.3.1) at the end of the grazing period. The accuracy of the used device was stated by the manufacturer to be within 8 m and 15 m as the mean, but should be far more accurate under proper conditions. In order to determine the quality of our GPS records of the heifers, we selected all lying events of each animal that lasted more than 60 min. Since the animal was not walking, the variance of the records should be relatively stable. However, it has to be claimed that head shaking or head movement might be contained in these events. For each lying event, we calculated the mean coordinates (using the geomean function of the geosphere package) and calculated the standard deviation for each direction (longitude and latitude) in meters. The standard deviation in the latitude direction was 1.04 m and 0.8 m for the longitude direction. Afterwards, we calculated the circular error probability (CEP) (50% radius), which was 1.10 m, and twice-distance root mean square (2DRMS) (95% radius), which was equal to 2.66 m.
Tracking the animals with a one-minute resolution, we ended up with about 41,760 data points per animal in total (the exact numbers are given in Table 1). Regarding the GPS quality, on average, 6.2 ± 3.2 satellites were used for position estimation, and the average DOP was 1.5 ± 0.3 (see Table 1 for the data of individual sensors).

2.2. Social Network Construction

The overall workflow of the proposed method is shown in Figure 1 and explained in detail in the following.
Data processing, network construction, and graphic generation were conducted with R [34] (Version 3.6.3) by using the following packages: dplyr [35] (1.0.7), extrafont [36] (0.17), geosphere [37] (1.5.10), ggplot2 [38] (3.3.5), igraph [39] (1.2.6), NetworkDistance [40] (0.3.4), plot.matrix [41] (1.6), ggnewscale [42] (0.4.5), sjmisc [43] (2.8.7), stringr [44] (1.4.0), and lubridate [45] (1.7.10).

2.2.1. Pairwise Distances between Heifers

In the first step, the GPS data with one-minute resolution were used to determine the distance between each two animals for each time point. For this, we used the Haversine distance (R package geosphere) to access the distances between GPS coordinates in meters. This resulted in a list of pairwise distances for each heifer pair and each time point.

2.2.2. Contacts between Heifers

Based on these distances, we counted the number of contacts between two animals by setting a maximal distance threshold beyond which two animals were defined to have a contact. Thus, we considered only those contacts c a , b where the distance d a , b between two animals a and b did not exceed a predefined threshold d. Afterwards, we counted for each pair of heifers the number of contacts.

2.2.3. Pointwise Mutual Information

In order to measure the level of association (positive relationship) between the animals, we calculated the PMI between each pair of heifers. The PMI measures the probability of coincident occurrence of two variables (i.e., animals) with respect to the probability of independent occurrence [31]. The PMI ( a , b )  [29,31,46] for two heifers a and b is calculated as:
P M I ( a , b ) = l o g 2 p ( a , b ) p ( a ) × p ( b )
The joint and marginal probabilities for the occurrence and co-occurrence of the heifers are defined as follows:
p ( a , b ) = f ( a , b ) n
p ( a ) = f ( a ) 2 n
where f ( a , b ) is the number of time points heifers a and b have a contact and n is the number of total contacts between animals. f ( a ) is the number of times heifer a is involved in a contact. Defining the probabilities in that way, we ensured that a , b p ( a , b ) = 1 and a p ( a ) = 1 .
Afterwards, we transferred the PMI to the positive pointwise mutual information (PPMI) [46], since the following steps were restricted to positive values. The PPMI matched the positive PMI values and was set to 0 if the corresponding PMI value was negative [46].
P P M I ( a , b ) = P M I ( a , b ) , i f P M I ( a , b ) > 0 0 , o t h e r w i s e

2.2.4. Average Product Correction

In order to increase the reliability of the estimated social associations, we eliminated the background noise to some extent by using the average product correction (APC) procedure [28]. The A P C ( a , b ) [28] of two heifers a and b is defined as:
A P C ( a , b ) = P P M I ( a , x ¯ ) × P P M I ( b , x ¯ ) P P M I ¯
where, for each pair of animals, the background level regarding their PMI values is estimated based on the average PMI values ( P P M I ( a , x ¯ ) ) the individual animals share with other heifers with respect to the overall average ( P P M I ¯ ).
P P M I ( a , x ¯ ) = 1 n x a P P M I ( a , x )
P P M I ¯ = 1 n 2 x y y x P P M I ( x , y )
Afterwards, the estimated background A P C ( a , b ) was subtracted from the original PPMI ( a , b ) :
P P M I A P C ( a , b ) = P P M I ( a , b ) A P C ( a , b ) .
Finally, we defined two animals a and b to have a social connection/being associated if their corresponding P P M I A P C ( a , b ) value was positive.

2.2.5. Network Construction

Constructing the social networks, the heifers were represented as nodes in the network, and there was an edge between them if they shared a positive relationship, meaning their P P M I A P C ( a , b ) value was positive.
For a better understanding and interpretation of the functionality of both P M I and the APC procedure, please see Appendix A.2.

2.3. Validation of the Application

2.3.1. Influence Factors of Network Construction

In order to investigate the influence of different distance thresholds d for heifer contact definition on the social network structure, we tested thresholds of d = 5 m, 2.5 m, 1.5 m, and 1 m.
The activity sensors determine with a one-minute resolution the relative time the animals spend lying or standing. In order to compare the social networks resulting from different animal activities, we constructed networks based on the data of solely * (i) standing or (ii) lying animals. Only records of animals were taken into account when the animal was entirely (the whole minute of the record interval) standing or lying.

2.3.2. Robustness

A robust method should produce stable results and should therefore not be affected by a certain amount of missing data.
In order to demonstrate the robustness of the approach, we systematically eliminated random recordings of the original GPS dataset and compared the resulting networks with the original one. For this comparison, we used the Hamming distance, which is defined for two undirected networks g 1 and g 2 of the same number of nodes N by:
H g 1 , g 2 = | E g 1 E g 2 | | E g 1 E g 2 | N ( N 1 ) / 2
where E g 1 and E g 2 are the edges of graph g 1 and g 2 , respectively [47]. The Hamming distance focuses on the number of different edges between the two graphs; thereby, different edges can be either exchanged, newly present, or absent. If H g 1 , g 2 = 0 , the graphs g 1 and g 2 are identical.

2.3.3. Comparison with Existing Methods

For a proper evaluation of the detected edges, we performed a common analysis by using a null model to determine significant associations between heifers (as described by [25]). In general, a null model is a procedure that produces datasets (e.g., by simulation or randomization), which, in turn, are used to test the observed data against [25,48]. Since the construction of proper null models based on the raw coordinate data is very challenging [25], we took the pairwise distance table of all time points and shuffled the distance column 1000 times by keeping time and animal pair. Afterwards, we determined significant associations in two ways: (i) contact numbers and (ii) PMI values. The p-values were calculated following [25].

3. Results

3.1. Investigation of Animal Contacts

The number of contacts with respect to different distance thresholds (5 m, 2.5 m, 1.5 m, and 1 m) is shown in Figure 2. Despite the overall number of contacts decreasing with increasing distance threshold, the most obvious properties of the distributions remained, i.e., the heifer pair A–C had the largest number of contacts for all distance thresholds. It should be mentioned that the pairs B–C and B–E had nearly the same number of contacts using a distance threshold of 5 m, but the pair B–E showed much more contacts for all other distance thresholds. Applying a χ 2 -test to determine whether there was a significant difference in the frequencies of contacts between each two distance thresholds, we found that except for the contact distributions 1 m and 1.5 m, all other combinations were significantly different ( p < 0.05 ).
We further investigated the contact locations in the pasture to indicate to what extent these locations might change in response to different distance thresholds. The contact zones of the animals are depicted in Figure 3 and were spread through out the entire eastern part of the pasture, the newly opened pasture part. A clear contact zone was the eastern watering trough; this contact zone became apparent by decreasing the distance threshold. Other hot spots for contacts were the locations close to the middle fence, which separates the eastern and western pasture parts. The contact zones close to the middle fence were similarly located for the individual distance thresholds with some changes in their intensity that might be related to the different number of general contacts.
Based on the observed pairwise contacts between heifers for the individual distance constraints, we constructed social networks in the way described above for all distance thresholds (1 m: network N1; 1.5 m: network N1.5; 2.5 m: network N2.5; 5 m: network N5). The networks are shown in Figure 4 and appear to be very similar regarding their general structure. The networks N1.5 and N2.5 consisted of 14 edges, whereas the networks N1 and N5 had 15 edges. The networks N1.5 and N2.5 were identical, and 13 edges were present in both networks. A comparison of the individual networks based on their edges is shown in Table A1.
Regarding the social animal herd structure, we investigated the number of connections per animals, in network theory referred to as the degree of a node. A hub node in this context is an outstanding node regarding its degree, i.e., it is much more connected than most of the other nodes. For the underlying social networks of heifers based on different distance thresholds, no hub node could be found. However, Heifers B, E, F, and H all had four associations with other heifers, and four was the largest degree. Heifer C had the highest weighted degree (sum of related P P M I A P C values). The strongest connections were formed between Heifers D and E, both Frisian Holstein, same age (nine days difference), and same calving dates (two days difference), as well as between A and C, both crossbreed, identical age (three days difference), and close calving dates (three days difference).

3.2. Investigation of Animal Activity

In order to investigate the different outcomes of social network construction based on animal activity, we separated the dataset into (i) both animals lying and (ii) both animals standing. For each of these two cases, we show the contact zones in Figure 5, choosing a distance threshold of 1 m. Contacts between standing animals were observed most frequently at the watering trough, as well as at the gate connecting the two pasture parts. Contacts between lying animals were most frequent in the north close to the middle fence, the area the animals used to lie down.
Second, we investigated the number of contacts between standing and lying animals. As shown in Figure 6, the general distribution of pairwise contacts differed between standing and lying animals ( χ 2 -test p < 0.05 ). For the lying animals, the differences between the individual pairs were stronger compared to the standing heifers, and also, the top contact pairs differed between standing and lying. For the standing animals, the pair E–D showed the most contacts, whereas for lying, Animals A and C formed the strongest pair. Regarding the general contact frequencies between standing and lying heifers, there was no significant difference (Wilcoxon rank-sum test p > 0.05 ).
Based on these numbers of contacts, we constructed social networks for the lying and standing heifers, respectively, by using the described methodology. The networks are shown in Figure 7. Both networks included all eight heifers equipped with GPS tags. The network for standing heifers consisted of 13 social relations and the network of lying heifers of 14. Comparing both networks, nine links were consistent. Thus, for the standing network, four dyads were unique (B–D, D–G, B–H, F–H) and five for the lying network (A–B, D–F, E–G, F–G, D–H). The most striking difference between the networks was the connection between Heifers D and H, which was strongly represented in the lying network and not present in the network of standing heifers. A glimpse back to Figure 6 shows that this pair had the most contacts of lying animals for Heifer H. In contrast, it was even underrepresented among the standing animals.
Investigating the social structure of the heifers, for the lying animals, Heifer F had, with a degree of five, the most predicted associations with other heifers. For the standing heifers, no clear hub node could be identified, but three heifers (B, F, H) had four associations. Regarding the weighted degree (sum of all P P M I A P C values of adjacent edges), the node representing Heifer D had the highest-weighted degree in the standing and lying network.
The strongest connection in the standing network was formed between Heifers D and E; both are the Holstein Frisian breed and share the same age and very close calving dates. The second strongest pair was formed by Heifers C and A, both crossbreeds, with a similar age and calving dates. These two dyads also formed the strongest pairs of the lying network. Additionally, in the lying network, the association between Heifers D and H stood out. These two heifers differed in their age by about three month; both are the Holstein Frisian breed, and their calving dates had more than a 100-day difference.

3.3. Investigation of the Method’s Robustness

In order to verify the robustness of the presented approach, we randomly removed parts (10% to 60%) of the original GPS input data and constructed networks based on the remaining GPS dataset consisting of 90%, 80%, 70%, 60%, 50%, and 40% of the original data. We compared the resulting networks to the one of the original dataset size by using the Hamming distance. For contact definition, we chose a distance threshold of 1 m for the construction of all networks.
The results are presented in Figure 8. With inclining losses of data, the difference of the original from the networks of lost data increased. Considering networks constructed of 90% or 80% of the original data, the Hamming distance indicated only small differences between the networks and the original one regarding their edges. In fact, a Hamming distance of 0.14 indicated a difference affecting two edges. None of the networks constructed with 50% or 40% of the original dataset were equivalent to the original network. The observed maximum Hamming distance of 0.5 indicated a difference between the networks of seven edges (exchanged, newly present, absent).
The network density, presented here by the number of edges, showed increasing variation with increasing loss of GPS data. The original network had 15 edges; constructing networks by using 90% or 80% of the original data, the number of edges varied between 13 and 15, whereas for networks formed by using only 40% of the GPS data, some networks had 11 or 16 edges.

3.4. Validation of APC Application

In order to compare the application of PMI combined with the APC procedure to the common method, i.e., the comparison to the null model, we shuffled the pairwise distances of the heifer pairs 1000 times and determined (i) the number of contacts (1 m distance threshold) and (ii) the PMI values for each of the 1000 samples. Afterwards, we determined for each number of contacts and each PMI value of the original data whether it was significantly different from the data generated by the null model. Based on these calculations, we constructed networks of significant contact counts and PMI values, respectively. The resulting networks are presented in Figure 9; since the edges were either significant or not, the width of the edges is uniform.
The comparison between the network produced by the APC procedure and the two networks of (i) significant contact counts and (ii) significant PMI values is given in Table 2. All of the edges contained in the two significant networks were present in the P P M I A P C network. Six of them were present in all three networks, and two edges (E–H and F–H) solely occurred in the P P M I A P C network.

4. Discussion

4.1. Investigation of Different Distance Constraints

Since the distance between cattle reflects their social relationship [16,18,49,50,51], commonly, by using point location data (such as GNSS records), a distance threshold is set for the determination of contacts, beyond which two animals are defined to have a contact [1,13,14,15,17]. Increasing or decreasing this distance threshold influences the number of observed contacts, i.e., less contacts are observed for more strict distance thresholds. Thereby, the number of false positive contacts, i.e., the animals pass each other without any intention to be close to each other, drops. On the other hand, strict distance thresholds might lead to an under-representation of animals with a larger individual space. We investigated four different distance thresholds of 1 m, 1.5 m, 2.5 m, and 5 m. Our results showed that although the number of contacts declined by decreasing the threshold, the general distribution of the number of pairwise contacts remained and appeared to be relatively stable. As a consequence, the corresponding social networks were very similar for the different distance thresholds. This finding is in line with a study of Rocha et al., where they investigated the influence of different distance thresholds (1.25 m ± 0.25 m) of pen-housed dairy cattle. They concluded that although the general number of contacts decreased/increased, the resulting networks did not change qualitatively [13]. Transferred to cattle behavior, this aspect might indicate that there is no heifer with a considerably larger individual space than the others, and the general number of false positive contacts dropped equally with the number of contacts, thus not affecting the general distribution.

4.2. Investigation of Different Activities

The identification of associations between animals might also be affected by the activity the animals are performing. For example, during grazing, animals are within their herd, and being close by their preferred herd mate might not be as important as lying down for sleeping or ruminating. Shiyomi found that the distances, as well as the distance variations were much bigger during grazing than in the resting phase [52]. Further, associations between cows are not necessarily fixed, but can be context dependent [16,53], and thus, different social networks might be observed from different functional areas [16].
We investigated the number of pairwise contacts for lying and standing animals by using a distance threshold of 1 m. Although the general number of contacts did not differ significantly between the two scenarios, the general contact frequency differed strongly between standing and lying animals, which is in line with the expected behavior of heifers in pasture. Further, the contrast between the animal pairs was much clearer for the lying animals. In consideration of the fact that lying is a stationary behavior and not directly comparable with walking, our findings suggested that heifers have preferred herd mates and lie down next to them. The associations of the standing network were in general weaker compared to the lying network. This was supported by Gygax et al., who found that social networks of dairy cattle become less strongly connected from the lying and feeding area to the activity area [16].
Regarding the constructed social networks for lying and standing, around 2/3 of the edges were consistent, whereas 1/3 differed. Since the contact distribution of the standing animals was not as clear as that of the lying ones, we suggest that the amount of random contacts by passing by affected the analysis, and a differentiation between loose connections to random connections might not be possible. Still, the strong connections presented in the lying and standing networks matched. Following our findings, we would like to point out that the activity the animals were carrying out was of major importance for the construction of social networks and that solely focusing on distances might not be sufficient, especially for identifying loose, but still present associations.

4.3. Robustness and Validation

Our results showed that removing up to 30% of the underlying original data affected only up to two edges in the social network. The elimination of more data points led to more diverse networks, and at most, seven edges were different, increasing the chance of misinterpretations. With that, the method appeared relatively stable regarding its general findings, since the number of nodes remained, as well as most of the detected associations.
Regarding the reliability of the detected associations between heifers, we constructed two different null models. The first solely focused on the number of contacts, thus not affected by the association measure used. The second one relied on the PMI, an information-theoretic association measure that preprocessed the data more than the other by incorporating the knowledge about the frequency that the respective heifers participated in other pairings.
Both null models are appropriate to compare with the APC procedure, since all approaches intend to identify the most important edges of the networks. However, it has to be mentioned that Heifer H was not connected to any other heifer in the network of significant contact frequencies. This heifer had in general a low number of contacts, but was unlikely not to be connected to the other heifers of the herd. This finding might point out the requirement to further process the contact numbers (i.e., by PMI) to determine all associations with respect to the individual contact behavior of the animals. Although both networks were developed by a prenetwork permutation-based null model, only about 2/3 of the edges were identical. This underlines the statement that the output networks strongly depend on the chosen null model [25].
All of the edges determined by the null models were present in our network, and therefore, the significance for all edges, except two (E–H and F–H), could be proven. Whereas the association of F–H determined by P P M I A P C was close to zero, and thus very poor, the association of E–H was stronger, but still was the second-weakest connection of Heifer H. Whether the presence of these two edges is appropriate might depend on the application aim or research question. For our application, the identification of social associations between heifers, the identification of these edges was not disadvantageous and helped identify the position of heifers in the social herd structure.

4.4. GNSS Technology

In our study, we used commercially available GPS collars, including a standard GPS receiver using absolute positioning. Based on lying events, we determined the quality of the used GPS collars for the underlying study conditions. In consideration that there might be movement of the receiver due to animal’s head motion, the accuracy was acceptable, but still in the range of meters (CEP = 1.10 m, 2DRMS = 2.66 m). Thus, several of the tracked contacts might be regarded as noise due to measurement errors, i.e., the ground truth distance between the animals might be 3 m, but we determined a contact using a distance threshold of 1 m. However, since the differences between the different distance thresholds that were above or below the device accuracy, our method seemed to be able to identify the signal in the underlying data.
It has to be mentioned that there exist strategies based on GNSSs that promise to be much more accurate than common GPS sensors. Next to the commonly used GNSS, GPS, other GNSSs exist such as the European Global Navigation Satellite System (Galileo), Global’naya Navigatsionnaya Sputnikova Sistema (GLONASS), and the Chinese BeiDou Navigation Satellite System (BeiDou) [54,55]. The combination of these systems, referred to as multi-GNSS, promises to be beneficial regarding a shorter positioning convergence time [55,56], as well as position accuracy due to the increased number of satellites and the better constellation between satellites and sensors [54,55] after the correction of ambiguities [56]. While solely using multiple GNSSs, the accuracy might stay in the range of meters, utilizing real-time kinematic (RTK) positioning, and differential correction can lower the error in the range of centimeters under perfect conditions [57].
Investigating the social behavior of Merino Ewes, Keshavarazi et al. constructed an RTK-corrected multi-GNSS device named RTK rover that was attached to the animals by using a dog harness [57]. The accuracy of the receiver was determined to be 20 cm, and the researchers compared video observations with GNSS records, concluding that the RTK rover correctly determined the position of animals relative to each other [57]. Although the usage of this device appears to be not yet practical for continuous recording of animals for a long time, the authors underwent an important step by investigating new technologies for animal monitoring.
We assumed that, in the near-future, improved multi-GNSS receivers will be commercially available as collars with affordable costs and will allow a much more accurate tracking of animal behavior. Focusing on our proposed methodology, the more accurate predictions will allow a better estimation of the background co-occurrences, i.e., random or not intended co-occurrences of animals, giving more hints to understand the complex social behavior of cattle or any other social animal species equipped with multi-GNSS sensors. Further, the networks might become more accurate, helping to make more precise management decisions.

4.5. Association Measures of Animal Relationships

Commonly used association measures are the half-weight index or the simple ratio index. These measures focus on the number of co-occurrences of animals in relation to the general occurrence of the animals and are powerful regarding manual animal behavior observations. Technologies, such as GNSS, GPS, wireless local positioning systems, or even cameras (recording from a proper perspective by including automatic object detection), promise to be valuable for precision livestock farming [18,58]. All these technologies provide one record per animal and time interval, and consequently, the number of general occurrences of the animals in the dataset is equivalent. With that data, the mentioned association measures are nearly as good as focusing solely on the number of co-occurrences. In turn, the square root index, as well as PMI depend on the probabilities of the co-occurrence and single occurrence of the animals. These probabilities can be defined in an appropriate way for the data type. Originally, the probabilities were defined by the number of observations of the animals [23]. We defined the probabilities of an animal pair based on the general frequency of co-occurring animals, i.e., number of contacts of animals. The probabilities for the individual animals were based on the number of animals occurring in pairings. With these probability definitions, we set the probability of the co-occurrence of two heifers in relation to of their individual probability to be found paired. Further, using these definitions, we increased the final PMI values, and thus, the number of pairings exceeding an PMI value greater zero was increased. This was intended since our aim was to further use the APC procedure for the identification of important associations. The APC procedure has been developed for mutual information values that are positive by definition. As an additional comment, the negativity of PMI might also be circumvented by using the PMI formula without the logarithm or the square root index. However, the presence or absence of a logarithm can change the general distribution of the values. Further, the APC is not applied to an information-theoretic measure; associations occurring less than expected by chance remain in the data, and the process of filtering might not be predictable. Nonetheless, if the definition of probabilities cannot be adopted in a proper way and leads to an unexpected and unrealistic multitude of negative PMI values, this way of acting can be considered.

4.6. Heifer Social Associations

Analyzing the social associations between heifers, all networks (all activities, lying, standing) showed the strong connection between Heifers D–E and A–C, which fit perfectly regarding breed, age, and calving date. Heifers F, H, and G were the youngest animals. The connection from F to any of the two others was (if present at all) very weak. Heifers G and H were associated in all constructed networks, which might be due to their age (four-day difference). The tendency that in mixed herds, cattle of the same breed show closer distances than expected by chance was supported by Stricklin, who investigated two mixed herds of Angus and Herford cows in a pasture [59]. Sato et al. observed more exchanges of allogrooming between cows of close birth dates [50].
The number of edges exceeded the number of nodes, which is known to be an important feature of animal social networks [24]. There were no striking hub nodes in the networks, which might be plausible since the animals form a herd and their demand for social contacts might be similar.
Animal H showed a small number of contacts, which might indicate that it prefers a larger social space; however, by considering all of its contacts, some of them appeared more often than expected by chance and might be desired ones by the animal itself.

5. Conclusions

In this study, we applied the PPMI followed by the APC procedure for the determination of animals’ associations and, thus, social network construction. Investigating the contact definition based on different distance thresholds, we concluded that the influence of the distance between animals on the network structure was marginal. We further examined the influence on animal activity (i.e., standing vs. lying) and found that the individual contact frequency, as well as the network structure differed between the two activities under study. This finding needs to be kept in mind for future contact studies and underlines the benefit of combined sensor usage. Regarding the animal associations, we found strong associations that were consistent throughout all constructed networks, and the corresponding heifers shared certain commonalities. Finally, we showed the robustness of the approach to missing data points and compared the approach to a state-of-the-art methodology (null models). The results of the proposed method were stable regarding a certain amount of missing data, which points out the potential for practical usage of the approach. Further, the findings of the null models were included in the results of the presented approach.

Author Contributions

Conceptualization, C.M.; methodology, C.M.; software, C.M.; validation, C.M., S.E. and I.T.; formal analysis, C.M.; investigation, C.M.; resources, C.S.; data curation, C.S.; writing—original draft preparation, C.M.; writing—review and editing, C.M., S.E., C.S. and I.T.; visualization, C.M.; supervision, I.T.; project administration, S.E. and I.T. All authors have read and agreed to the published version of the manuscript.

Funding

We acknowledge support by the Open Access Publication Funds of the Göttingen University.

Institutional Review Board Statement

All animal treatments were in accordance with EU legislation (Council Directive 86/609/EEC). The sensor technology used was noninvasive and commercially available.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw GPS data can be provided by the authors upon request. Please contact: [email protected].

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
APCAverage product correction
CEPCircular error probability
DOPDilution of precision
GNSSGlobal Navigation Satellite System
GPSGlobal Positioning System
PMIPointwise mutual information
PPMIPositive pointwise mutual information
RTKReal-time kinematic
2DRMSTwice-distance root mean square

Appendix A

Appendix A.1. Network Comparison of Different Distance Thresholds

Table A1. Comparison of the social network constructed for the different distance thresholds. An x indicates the presence of an edge (determined association between heifers) in the corresponding network.
Table A1. Comparison of the social network constructed for the different distance thresholds. An x indicates the presence of an edge (determined association between heifers) in the corresponding network.
Dyad1 m1.5 m2.5 m5 m
A–Cxxxx
A–H x
B–Axxxx
B–Cxxxx
B–Exxxx
D–Exxxx
D–Gxxxx
D–Hxxxx
F–Axxxx
F–Bxxxx
F–Cxxxx
F–Hx x
G–Cxxx
G–Exxxx
H–Exxxx
H–Gxxxx

Appendix A.2. Understanding of PMI and the APC Procedure by Example

After counting the pairwise distances between heifers for each time point, we counted all contacts between heifers by using a distance threshold of 1 m and without making any constraints regarding the activity of the animals.
In the first step of the calculation, we used pointwise mutual information (PMI) in order to scale the associations with respect to the co-occurrence of heifers by pure chance. This step is shown in Figure A1, where the count values (a), as well as the corresponding PMI values (b) are presented. Most of the high count values had high PMI values. However, the order was changed in some cases, i.e., the pair C–G had a contact frequency of 334 and a PMI value of 1.25, whereas the pair D–G had 275 contacts and a PMI value of 1.35. Both pairs included G, and thus, the values related to B (Column B or Row B) in the column are not responsible for this flip of order. A look at the values belonging to C and D (contained in the corresponding rows) shows that C had three pairings having greater contacts as that with G. In turn, D only had one pair having more contacts and one having the same number of contacts as G. Thus, the interaction with G seemed to be much more important for D than for C, which is reflected by their PMI values.
After PMI calculation, we transformed the values to PPMI to avoid negative values and applied the APC procedure to eliminate the background arising from pure chance contacts. Simplified, the APC procedure calculates for each matrix entry the mean of the corresponding column and row and subtracts this from the matrix entry. It is obvious in Figure A1 that most of the small entries were eliminated by the APC procedure and the larger values remained (red circles). However, the pairs B–C and F–G both had a PMI value of 1.06, but only the pair B–C was included in the network. This was due to the fact that most of the PMI values of C were low, and thus, its average was smaller compared to the other IDs, leading to a positive value after average subtraction.
Figure A1. Matrix of the number of pairwise heifer contacts (a) and the corresponding PMI values (b). The red circles indicate that after APC procedure, the two entries formed an edge in the social network. Although the matrices are symmetric, we show all values to enable a better understanding of the functionality of PMI and the APC procedure. The background colors simplify the interpretation of the matrix; dark colors indicate high values and vice versa.
Figure A1. Matrix of the number of pairwise heifer contacts (a) and the corresponding PMI values (b). The red circles indicate that after APC procedure, the two entries formed an edge in the social network. Although the matrices are symmetric, we show all values to enable a better understanding of the functionality of PMI and the APC procedure. The background colors simplify the interpretation of the matrix; dark colors indicate high values and vice versa.
Sensors 21 07585 g0a1

References

  1. Farine, D.R.; Whitehead, H. Constructing, conducting and interpreting animal social network analysis. J. Anim. Ecol. 2015, 84, 1144–1163. [Google Scholar] [CrossRef] [Green Version]
  2. Koene, P.; Ipema, B. Social Networks and Welfare in Future Animal Management. Animals 2014, 4, 93–118. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Wey, T.; Blumstein, D.T.; Shen, W.; Jordán, F. Social network analysis of animal behaviour: A promising tool for the study of sociality. Anim. Behav. 2008, 75, 333–344. [Google Scholar] [CrossRef]
  4. Chopra, K.; Hodges, H.R.; Barker, Z.E.; Vázquez Diosdado, J.A.; Amory, J.R.; Cameron, T.C.; Croft, D.P.; Bell, N.J.; Codling, E.A. Proximity Interactions in a Permanently Housed Dairy Herd: Network Structure, Consistency, and Individual Differences. Front. Vet. Sci. 2020, 7, 1040. [Google Scholar] [CrossRef]
  5. Vimalajeewa, D.; Balasubramaniam, S.; O’Brien, B.; Kulatunga, C.; Berry, D.P. Leveraging Social Network Analysis for Characterizing Cohesion of Human-Managed Animals. IEEE Trans. Comput. Soc. Syst. 2019, 6, 323–337. [Google Scholar] [CrossRef]
  6. 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 2019, 14, 1–11. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Büttner, K.; Scheffler, K.; Czycholl, I.; Krieter, J. Social network analysis—Centrality parameters and individual network positions of agonistic behavior in pigs over three different age levels. Springerplus 2015, 4, 185. [Google Scholar] [CrossRef] [Green Version]
  8. Büttner, K.; Scheffler, K.; Czycholl, I.; Krieter, J. Network characteristics and development of social structure of agonistic behaviour in pigs across three repeated rehousing and mixing events. Appl. Anim. Behav. Sci. 2015, 168, 24–30. [Google Scholar] [CrossRef]
  9. Li, Y.; Zhang, H.; Johnston, L.J.; Martin, W. Understanding Tail-Biting in Pigs through Social Network Analysis. Animals 2018, 8, 13. [Google Scholar] [CrossRef] [Green Version]
  10. de Freslon, I.; Martínez-López, B.; Belkhiria, J.; Strappini, A.; Monti, G. Use of social network analysis to improve the understanding of social behaviour in dairy cattle and its impact on disease transmission. Appl. Anim. Behav. Sci. 2019, 213, 47–54. [Google Scholar] [CrossRef]
  11. Chen, S.; Sanderson, M.W.; White, B.J.; Amrine, D.E.; Lanzas, C. Temporal-spatial heterogeneity in animal-environment contact: Implications for the exposure and transmission of pathogens. Sci. Rep. 2013, 3, 3112. [Google Scholar] [CrossRef] [Green Version]
  12. Chen, S.; White, B.J.; Sanderson, M.W.; Amrine, D.E.; Ilany, A.; Lanzas, C. Highly dynamic animal contact network and implications on disease transmission. Sci. Rep. 2014, 4, 4472. [Google Scholar] [CrossRef]
  13. 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]
  14. Chen, S.; Ilany, A.; White, B.J.; Sanderson, M.W.; Lanzas, C. Spatial-Temporal Dynamics of High-Resolution Animal Networks: What Can We Learn from Domestic Animals? PLoS ONE 2015, 10, e0129253. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Bolt, S.L.; Boyland, N.K.; Mlynski, D.T.; James, R.; Croft, D.P. Pair Housing of Dairy Calves and Age at Pairing: Effects on Weaning Stress, Health, Production and Social Networks. PLoS ONE 2017, 12, e0166926. [Google Scholar] [CrossRef] [PubMed]
  16. Gygax, L.; Neisen, G.; Wechsler, B. Socio-Spatial Relationships in Dairy Cows. Ethology 2010, 116, 10–23. [Google Scholar] [CrossRef]
  17. 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]
  18. Bailey, D.W.; Trotter, M.G.; Tobin, C.; Thomas, M.G. Opportunities to Apply Precision Livestock Management on Rangelands. Front. Sustain. Food Syst. 2021, 5, 93. [Google Scholar] [CrossRef]
  19. Chen, C.; Zhu, W.; Liu, D.; Steibel, J.; Siegford, J.; Wurtz, K.; Han, J.; Norton, T. Detection of aggressive behaviours in pigs using a RealSence depth sensor. Comput. Electron. Agric. 2019, 166, 105003. [Google Scholar] [CrossRef]
  20. Drickamer, L.; Vessey, S.; Jakob, E. Animal Behavior: Mechanisms, Ecology, Evolution; McGraw-Hill: Boston, MA, USA, 2002. [Google Scholar]
  21. Bøe, K.E.; Ehrlenbruch, R.; Jørgensen, G.H.M.; Andersen, I.L. Individual distance during resting and feeding in age homogeneous vs. age heterogeneous groups of goats. Appl. Anim. Behav. Sci. 2013, 147, 112–116. [Google Scholar] [CrossRef]
  22. Keeling, L. Spacing behaviour and an ethological approach to assessing optimum space allocations for groups of laying hens. Appl. Anim. Behav. Sci. 1995, 44, 171–186. [Google Scholar] [CrossRef]
  23. Cairns, S.J.; Schwager, S.J. A comparison of association indices. Anim. Behav. 1987, 35, 1454–1469. [Google Scholar] [CrossRef] [Green Version]
  24. Davis, G.H.; Crofoot, M.C.; Farine, D.R. Estimating the robustness and uncertainty of animal social networks using different observational methods. Anim. Behav. 2018, 141, 29–44. [Google Scholar] [CrossRef]
  25. Farine, D.R. A guide to null models for animal social network analysis. Methods Ecol. Evol. 2017, 8, 1309–1320. [Google Scholar] [CrossRef] [Green Version]
  26. Bonnell, T.R.; Vilette, C. Constructing and analysing time-aggregated networks: The role of bootstrapping, permutation and simulation. Methods Ecol. Evol. 2021, 12, 114–126. [Google Scholar] [CrossRef]
  27. Bejder, L.; Fletcher, D.; Bräger, S. A method for testing association patterns of social animals. Anim. Behav. 1998, 56, 719–725. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Dunn, S.; Wahl, L.; Gloor, G. Mutual information without the influence of phylogeny or entropy dramatically improves residue contact prediction. Bioinformatics 2007, 24, 333–340. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  29. Meckbach, C.; Tacke, R.; Hua, X.; Waack, S.; Wingender, E.; Gültas, M. PC-TraFF: Identification of potentially collaborating transcription factors using pointwise mutual information. BMC Bioinform. 2015, 16, 400. [Google Scholar] [CrossRef] [Green Version]
  30. Damani, O.P. Improving Pointwise Mutual Information (PMI) by Incorporating Significant Co-occurrence. arXiv 2013, arXiv:1307.0596. [Google Scholar]
  31. Bouma, G. Normalized (Pointwise) Mutual Information in Collocation Extraction. In Proceedings of the Biennial GSCL Conference 2009, Potsdam, Germany, 1 October 2009. [Google Scholar]
  32. Islam, M.A.; Inkpen, D. Second Order Co-occurrence PMI for Determining the Semantic Similarity of Words. In Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC’06), Genoa, Italy, 22–28 May 2006; European Language Resources Association (ELRA): Genoa, Italy, 2006. [Google Scholar]
  33. Ungar, E.; Nevo, Y.; Baram, H.; Arieli, A. Evaluation of the IceTag leg sensor and its derivative models to predict behaviour, using beef cattle on rangeland. J. Neurosci. Methods 2017, 300. [Google Scholar] [CrossRef]
  34. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2020. [Google Scholar]
  35. Wickham, H.; François, R.; Henry, L.; Müller, K. dplyr: A Grammar of Data Manipulation; R Package Version 1.0.7; The R Project for Statistical Computing: Vienna, Austria, 2021. [Google Scholar]
  36. Chang, W. Extrafont: Tools for Using Fonts; R Package Version 0.17; The R Project for Statistical Computing: Vienna, Austria, 2014. [Google Scholar]
  37. Hijmans, R.J. Geosphere: Spherical Trigonometry; R Package Version 1.5-10; The R Project for Statistical Computing: Vienna, Austria, 2019. [Google Scholar]
  38. Wickham, H. ggplot2: Elegant Graphics for Data Analysis; Springer: New York, NY, USA, 2016. [Google Scholar]
  39. Csardi, G.; Nepusz, T. The igraph software package for complex network research. InterJ. Complex Syst. 2006, 1695, 1–9. [Google Scholar]
  40. You, K. NetworkDistance: Distance Measures for Networks; R Package Version 0.3.4.; The R Project for Statistical Computing: Vienna, Austria, 2021. [Google Scholar]
  41. Klinke, S. plot.matrix: Visualizes a Matrix as Heatmap; R Package Version 1.6; The R Project for Statistical Computing: Vienna, Austria, 2021. [Google Scholar]
  42. Campitelli, E. ggnewscale: Multiple Fill and Colour Scales in ‘ggplot2’; R Package Version 0.4.5; The R Project for Statistical Computing: Vienna, Austria, 2021. [Google Scholar]
  43. Lüdecke, D. sjmisc: Data and Variable Transformation Functions. J. Open Source Softw. 2018, 3, 754. [Google Scholar] [CrossRef]
  44. Wickham, H. Stringr: Simple, Consistent Wrappers for Common String Operations; R Package Version 1.4.0; The R Project for Statistical Computing: Vienna, Austria, 2019. [Google Scholar]
  45. Grolemund, G.; Wickham, H. Dates and Times Made Easy with lubridate. J. Stat. Softw. 2011, 40, 1–25. [Google Scholar] [CrossRef]
  46. Levy, O.; Goldberg, Y.; Dagan, I. Improving Distributional Similarity with Lessons Learned from Word Embeddings. Trans. Assoc. Comput. Linguist. 2015, 3, 211–225. [Google Scholar] [CrossRef]
  47. Girelli, G. A Web Graphical Interface to Visualize and Analyze Tumor Evolution Networks. Ph.D. Thesis, University of Trento, Trento, Italy, 2014. [Google Scholar] [CrossRef]
  48. Gotelli, N.; Graves, G. Null Models in Ecology; Smithsonian Institution Press: Washington, DC, UDA, 1996. [Google Scholar]
  49. Patison, K.P.; Swain, D.L.; Bishop-Hurley, G.J.; Robins, G.; Pattison, P.; Reid, D.J. Changes in temporal and spatial associations between pairs of cattle during the process of familiarisation. Appl. Anim. Behav. Sci. 2010, 128, 10–17. [Google Scholar] [CrossRef]
  50. Sato, S.; Tarumizu, K.; Hatae, K. The influence of social factors on allogrooming in cows. Appl. Anim. Behav. Sci. 1993, 38, 235–244. [Google Scholar] [CrossRef]
  51. 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]
  52. Shiyomi, M. How are distances between individuals of grazing cows explained by a statistical model? Ecol. Model. 2004, 172, 87–94. [Google Scholar] [CrossRef]
  53. Reinhardt, V.; Reinhardt, A. Cohesive Relationships in a Cattle Herd (Bos indicus). Behaviour 1981, 77, 121–151. [Google Scholar] [CrossRef]
  54. Ma, H.; Zhao, Q.; Verhagen, S.; Psychas, D.; Liu, X. Assessing the Performance of Multi-GNSS PPP-RTK in the Local Area. Remote Sens. 2020, 12, 3343. [Google Scholar] [CrossRef]
  55. Li, X.; Zhang, X.; Ren, X.; Fritsche, M.; Wickert, J.; Schuh, H. Precise positioning with current multi-constellation Global Navigation Satellite Systems: GPS, GLONASS, Galileo and BeiDou. Sci. Rep. 2015, 5, 8328. [Google Scholar] [CrossRef] [PubMed]
  56. Nadarajah, N.; Khodabandeh, A.; Wang, K.; Choudhury, M.; Teunissen, P.J.G. Multi-GNSS PPP-RTK: From Large- to Small-Scale Networks. Sensors 2018, 18, 1078. [Google Scholar] [CrossRef] [Green Version]
  57. Keshavarzi, H.; Lee, C.; Johnson, M.; Abbott, D.; Ni, W.; Campbell, D.L.M. Validation of Real-Time Kinematic (RTK) Devices on Sheep to Detect Grazing Movement Leaders and Social Networks in Merino Ewes. Sensors 2021, 21, 924. [Google Scholar] [CrossRef]
  58. Katzner, T.E.; Arlettaz, R. Evaluating Contributions of Recent Tracking-Based Animal Movement Ecology to Conservation Management. Front. Ecol. Evol. 2020, 7, 519. [Google Scholar] [CrossRef] [Green Version]
  59. Stricklin, W.R. Matrilinear Social Dominance and Spatial Relationships among Angus and Hereford Cows. J. Anim. Sci. 1983, 57, 1397–1405. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Workflow of social network construction. Based on the GPS data, the pairwise distances at each tracked time point were calculated for all heifer pairs. Based on these distances, all pairwise contacts were counted by using a predefined distance threshold. These numbers of contacts in turn were used to calculate the (positive) pointwise mutual information (PMI), and background co-occurrences of heifers were eliminated by using the average product correction (APC) procedure. Finally, the social network was constructed where edges refer to associations between the heifers, i.e., the corresponding PMI values were > 0 after the APC procedure.
Figure 1. Workflow of social network construction. Based on the GPS data, the pairwise distances at each tracked time point were calculated for all heifer pairs. Based on these distances, all pairwise contacts were counted by using a predefined distance threshold. These numbers of contacts in turn were used to calculate the (positive) pointwise mutual information (PMI), and background co-occurrences of heifers were eliminated by using the average product correction (APC) procedure. Finally, the social network was constructed where edges refer to associations between the heifers, i.e., the corresponding PMI values were > 0 after the APC procedure.
Sensors 21 07585 g001
Figure 2. Number of contacts for all dyads. Number of contacts, i.e., time points in minutes, the two animals shared a distance below a threshold of 5 m, 2.5 m, 1.5 m, or 1 m, respectively.
Figure 2. Number of contacts for all dyads. Number of contacts, i.e., time points in minutes, the two animals shared a distance below a threshold of 5 m, 2.5 m, 1.5 m, or 1 m, respectively.
Sensors 21 07585 g002
Figure 3. Contact zones of heifers. The dark zones mark the areas of a high number of pairwise contacts, i.e., the distance between heifers is less than a distance threshold (1 m, 1.5 m, 2.5 m, 5 m). Black thin lines indicate the fence of the pasture; the middle fence separates the eastern from the western part. The gate (red) at the middle fence is open, and the heifers can move freely between the eastern and western pasture part.
Figure 3. Contact zones of heifers. The dark zones mark the areas of a high number of pairwise contacts, i.e., the distance between heifers is less than a distance threshold (1 m, 1.5 m, 2.5 m, 5 m). Black thin lines indicate the fence of the pasture; the middle fence separates the eastern from the western part. The gate (red) at the middle fence is open, and the heifers can move freely between the eastern and western pasture part.
Sensors 21 07585 g003
Figure 4. Social networks of the eight heifers in the pasture based on the P P M I A P C values for different distance thresholds used to define a contact. Heifers are presented as nodes and labeled by their ID, and edges indicate a positive association according to their P P M I A P C values. The edge width reflects the strength of this association. Please note that Heifers H and F are connected in the networks of the 1 m and 5 m distance thresholds, but since this association is close to zero, it is barely visible.
Figure 4. Social networks of the eight heifers in the pasture based on the P P M I A P C values for different distance thresholds used to define a contact. Heifers are presented as nodes and labeled by their ID, and edges indicate a positive association according to their P P M I A P C values. The edge width reflects the strength of this association. Please note that Heifers H and F are connected in the networks of the 1 m and 5 m distance thresholds, but since this association is close to zero, it is barely visible.
Sensors 21 07585 g004
Figure 5. Contact zones of standing and lying heifers, respectively. The dark zones mark the areas of a high number of pairwise contacts, i.e., the distance between heifers is less than the distance threshold of 1 m. The distribution of contacts is shown by blue lines. Black thin lines indicate the fence of the pasture; the middle fence separates the eastern from the western part. The gate (red) at the middle fence is open, and the heifers can move freely between the eastern and western pasture part.
Figure 5. Contact zones of standing and lying heifers, respectively. The dark zones mark the areas of a high number of pairwise contacts, i.e., the distance between heifers is less than the distance threshold of 1 m. The distribution of contacts is shown by blue lines. Black thin lines indicate the fence of the pasture; the middle fence separates the eastern from the western part. The gate (red) at the middle fence is open, and the heifers can move freely between the eastern and western pasture part.
Sensors 21 07585 g005
Figure 6. Number of contacts (distance < 1 m) for standing and lying animals, respectively.
Figure 6. Number of contacts (distance < 1 m) for standing and lying animals, respectively.
Sensors 21 07585 g006
Figure 7. Social networks constructed for standing and lying heifers, respectively. Nodes represent heifers labeled by their ID, and edges represent identified contacts after applying the APC procedure. The edge width reflects the strength of the association.
Figure 7. Social networks constructed for standing and lying heifers, respectively. Nodes represent heifers labeled by their ID, and edges represent identified contacts after applying the APC procedure. The edge width reflects the strength of the association.
Sensors 21 07585 g007
Figure 8. Robustness of the APC procedure applied for social network construction to the loss of GPS data. Randomly, fractions of data were removed in a way that only 90%, 80%, 70%, 60%, 50%, or 40% of the original data remained for network construction. This was done ten times per fraction. Afterwards, the constructed networks based on the incomplete data were compared to that of the original GPS dataset by using (a) the Hamming distance and (b) the number of edges. The original network consisted of 15 edges. In all networks, the number of nodes remained at eight. A Hamming distance of 0 indicates identical networks; a Hamming distance of 0.5 indicates 7 different edges (exchanged/newly present/absent).
Figure 8. Robustness of the APC procedure applied for social network construction to the loss of GPS data. Randomly, fractions of data were removed in a way that only 90%, 80%, 70%, 60%, 50%, or 40% of the original data remained for network construction. This was done ten times per fraction. Afterwards, the constructed networks based on the incomplete data were compared to that of the original GPS dataset by using (a) the Hamming distance and (b) the number of edges. The original network consisted of 15 edges. In all networks, the number of nodes remained at eight. A Hamming distance of 0 indicates identical networks; a Hamming distance of 0.5 indicates 7 different edges (exchanged/newly present/absent).
Sensors 21 07585 g008
Figure 9. Network constructed from significant count values and significant PMI values in comparison to the null model.
Figure 9. Network constructed from significant count values and significant PMI values in comparison to the null model.
Sensors 21 07585 g009
Table 1. Overview of the heifers of the study. Each heifer received an capital letter for individual identification. All heifers were pregnant. The age and days before calving were determined by 24 September 2019 (study start) as the reference date. The column Recordings gives the number of GPS recordings per animal. The animal position was tracked with one-minute resolution. Observing the animals for 29 days, 1440 × 29 = 41,760 data points were recorded per animal without the loss of data points. The last column contains the mean number of satellites used for position estimation, as well as the mean dilution of precision (DOP).
Table 1. Overview of the heifers of the study. Each heifer received an capital letter for individual identification. All heifers were pregnant. The age and days before calving were determined by 24 September 2019 (study start) as the reference date. The column Recordings gives the number of GPS recordings per animal. The animal position was tracked with one-minute resolution. Observing the animals for 29 days, 1440 × 29 = 41,760 data points were recorded per animal without the loss of data points. The last column contains the mean number of satellites used for position estimation, as well as the mean dilution of precision (DOP).
AnimalAge (Months (Days))BreedDays b. CalvingRecordingsMean Satellites (Mean DOP)
A25 (+7)Crossbreed9741,7475.39 (1.53)
B25 (+16)Holstein Frisian9841,7507.07 (1.51)
C25 (+4)Crossbreed10041,7536.32 (1.52)
D24 (+28)Holstein Frisian8941,7536.08 (1.49)
E24 (+19)Holstein Frisian9141,7586.10 (1.49)
F22 (+24)Holstein Frisian14141,7476.16 (1.50)
G22 (+7)Holstein Frisian15941,7496.23 (1.50)
H22 (+3)Holstein Frisian20841,7586.16 (1.50)
Table 2. Comparison between heifer pairs predicted by our P P M I A P C approach with those showing a significant count or PMI values. The significant contact counts or PMI values were determined by creating 1000 samples based on shuffling the pairwise distance data. The contact counts or PMI values were significantly greater compared to those resulting from the random samples. An “x” indicates the presence of an edge.
Table 2. Comparison between heifer pairs predicted by our P P M I A P C approach with those showing a significant count or PMI values. The significant contact counts or PMI values were determined by creating 1000 samples based on shuffling the pairwise distance data. The contact counts or PMI values were significantly greater compared to those resulting from the random samples. An “x” indicates the presence of an edge.
Pair PPMI APC Sig. Contact CountsSig. PMI Values
A–Cxxx
B–Exxx
D–Exxx
A–Fxxx
C–Fxxx
E–Gxxx
D–Gx x
D–Hx x
G–Hx x
A–Bxx
B–Cxx
B–Fxx
C–Gxx
E–Hx
F–Hx
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Meckbach, C.; Elsholz, S.; Siede, C.; Traulsen, I. An Information-Theoretic Approach to Detect the Associations of GPS-Tracked Heifers in Pasture. Sensors 2021, 21, 7585. https://doi.org/10.3390/s21227585

AMA Style

Meckbach C, Elsholz S, Siede C, Traulsen I. An Information-Theoretic Approach to Detect the Associations of GPS-Tracked Heifers in Pasture. Sensors. 2021; 21(22):7585. https://doi.org/10.3390/s21227585

Chicago/Turabian Style

Meckbach, Cornelia, Sabrina Elsholz, Caroline Siede, and Imke Traulsen. 2021. "An Information-Theoretic Approach to Detect the Associations of GPS-Tracked Heifers in Pasture" Sensors 21, no. 22: 7585. https://doi.org/10.3390/s21227585

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