Next Article in Journal
Association of IL-4 and IL-4R Polymorphisms with Litter Size Traits in Pigs
Previous Article in Journal
Improving the Quality and Safety of Fresh Camel Meat Contaminated with Campylobacter jejuni Using Citrox, Chitosan, and Vacuum Packaging to Extend Shelf Life
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Pilot Study Using Accelerometers to Characterise the Licking Behaviour of Penned Cattle at a Mineral Block Supplement

1
Ruminant Research Group (RRG), School of Environmental and Rural Science, University of New England, Armidale, NSW 2351, Australia
2
Precision Agriculture Research Group (PARG), School of Science and Technology, University of New England, Armidale, NSW 2351, Australia
3
Livestock Industries Centre, NSW Department of Primary Industries, University of New England, Armidale, NSW 2351, Australia
*
Author to whom correspondence should be addressed.
Animals 2021, 11(4), 1153; https://doi.org/10.3390/ani11041153
Submission received: 24 March 2021 / Revised: 14 April 2021 / Accepted: 16 April 2021 / Published: 17 April 2021
(This article belongs to the Section Cattle)

Abstract

:

Simple Summary

Quantifying mineral block supplement intake by individual beef cattle is a challenging task but may enable improved efficiency of supplement use particularly in a grazed system. Estimating time spent licking when cattle access the mineral block supplement can be useful for predicting intake on an individual basis. The advancement of sensor technology has facilitated collection of individual data associated with ingestive behaviours such as feeding and licking duration. This experiment was intended to investigate the effectiveness of wearable tri-axial accelerometers fitted on both neck-collar and ear-tag to identify the licking behaviour of beef cattle by distinguishing it from eating, standing and lying behaviours. The capability of tri-axial accelerometers to classify licking behaviour in beef cattle revealed in this study would offer the possibility of measuring time spent licking and further developing a practical method of estimating mineral block supplement intake by individual grazing cattle.

Abstract

Identifying the licking behaviour in beef cattle may provide a means to measure time spent licking for estimating individual block supplement intake. This study aimed to determine the effectiveness of tri-axial accelerometers deployed in a neck-collar and an ear-tag, to characterise the licking behaviour of beef cattle in individual pens. Four, 2-year-old Angus steers weighing 368 ± 9.3 kg (mean ± SD) were used in a 14-day study. Four machine learning (ML) algorithms (decision trees [DT], random forest [RF], support vector machine [SVM] and k-nearest neighbour [kNN]) were employed to develop behaviour classification models using three different ethograms: (1) licking vs. eating vs. standing vs. lying; (2) licking vs. eating vs. inactive; and (3) licking vs. non-licking. Activities were video-recorded from 1000 to 1600 h daily when access to supplement was provided. The RF algorithm exhibited a superior performance in all ethograms across the two deployment modes with an overall accuracy ranging from 88% to 98%. The neck-collar accelerometers had a better performance than the ear-tag accelerometers across all ethograms with sensitivity and positive predictive value (PPV) ranging from 95% to 99% and 91% to 96%, respectively. Overall, the tri-axial accelerometer was capable of identifying licking behaviour of beef cattle in a controlled environment. Further research is required to test the model under actual grazing conditions.

1. Introduction

The quantification of mineral block supplement intake by individual cattle will be valuable for improving efficiency of supplement use in grazing systems [1]. Exploiting automatic feeders such as GrowSafe® [2] or SmartFeed® [3] and incorporating chemical markers, such as lithium salts [4] or fenbendazole [5] into the mineral block supplements are common techniques used for estimating consumption by individual cattle. However, their use over a long period in a larger herd is considered impractical and technically prohibitive since not every animal has the chance to access to the feeder bin effectively [3] and the necessity for extensive laboratory analysis of the marker [5]. Hence, advancement of simpler more immediate methods of estimating supplement intake are required to assist managers in decision-making in order to improve efficiency of beef cattle production systems.
Wireless technology using animal-borne sensors allows individual animals to be physically monitored in real-time without interfering in their natural behaviour [6,7]. Tri-axial accelerometers have been routinely deployed to automatically record and classify behaviours of domesticated animals based on the acceleration movements over the three perpendicular axes [8,9,10,11]. Recent investigations have reported that tri-axial accelerometers were capable of categorising oral and intake behaviours of ruminants such as suckling [12], ruminating, eating [13], grazing [14], chewing, biting [11], and drinking [15]. Apart from reducing observation time, the capability of accelerometers to discriminate feeding behaviours indicates the potential for developing algorithms to accurately predict feed intake [16]. Greenwood et al. [17] formulated a simple algorithm to predict pasture intake by individual cattle using accelerometers and Williams et al. [15] reported that accelerometers could be used to predict water intake of grazing cattle based on prediction of visiting frequency and duration per visit to the water trough.
Tri-axial accelerometers have often been affixed to the body parts of beef cattle mainly on the ear (ear-tag) [18], neck (collar) [15] and muzzle (halter) [12]. Several machine learning (ML) algorithms have also been applied to analyse the accelerometer data for developing behaviour classification models in cattle such as decision tree [9,13,19], random forest [20,21], kernel support vector machine [22,23], discriminant analysis, and k-nearest neighbours [23,24]. These algorithms generated diverse performances of the models depending mainly on the types of behaviour and sensor placement modes [24,25]. By using neck collar-based accelerometers, Williams et al. [26] succeeded in differentiating drinking from standing (100% accuracy) and walking (92% accuracy) events. However, Kour et al. [12] reported that fitting the accelerometer on a neck-collar was ineffective for classifying suckling behaviour in beef calves. Wolfger et al. [18] found that the ear-tag based accelerometers were able to classify feeding behaviour of lot-fed cattle along with ruminating, active, and resting behaviours with 95% sensitivity and 98% negative predictive value.
Providing supplemental feeds for range cattle in the form of lick-block or loose-lick minerals containing urea during the dry season or phosphorus during the wet season is fundamental to successful cattle breeding in the tropical area of northern Australia [27,28]. The effectiveness of strategic supplementation is contingent upon the ability to decrease between- and within-animal (across days) intake variation [1]. Because grazing cattle mostly ingest such supplements through licking [29], identifying and monitoring this behaviour would be useful to determine whether or not individual animals can meet a targeted consumption, or to place an upper limit on access to a supplement. Simanungkalit et al. [5] has previously shown that time spent at mineral blocks measured by an automatic supplement weighing unit was proportional to block intake on a herd basis. However, high deviation obtained from their linear association was found because of exploratory time before licking. Hence, identifying whether or not the animal is licking while visiting the block supplements is pivotal for improved accuracy of intake prediction. The capability of tri-axial accelerometers to classify behaviour in cattle may offer potential to quantify licking events and time spent licking for the prediction of mineral block supplement intake by individual cattle.
To the best of the authors’ knowledge, no studies have been reported to differentiate licking from other behaviours using tri-axial accelerometers in beef cattle. Hence, this pilot study aimed to determine the effectiveness of tri-axial accelerometers deployed on a neck collar and an ear-tag to characterise the licking behaviour of individually penned beef cattle at a mineral block supplement by distinguishing between licking and other observed (eating, standing, and lying) behaviours. To assess the performance of each deployment mode, four ML algorithms were used to develop behaviour classification models using three different sets of ethograms.

2. Materials and Methods

2.1. Animals and Experimental Site

Research protocols and use of animals were approved by University of New England (UNE) Animal Ethics Committee (AEC19-041) in accordance with the Australian Code for the Care and Use of Animals for Scientific Purposes. The experiment was conducted at UNE, Armidale, NSW, Australia (30°29′02.3″ S, 151°38′18.5″ E). Four Angus steers aged 2 years with an average body weight (± SD) of 368 (±9.3 kg) were subjects for this study. All steers had been retained and grazed together for six months before the experiment.

2.2. Instrumentation

Ear-tags and neck-collars equipped with tri-axial accelerometers (AX3 3-Axis Logging Accelerometer, Axivity Ltd., Newcastle Helix, Newcastle, UK) were fitted to all four animals. The ear-tag was attached to the ventral side of the offside left ear and the neck-collar was placed around the neck with the accelerometer mounted on the base of the collar under the lower jaw (Figure 1). Each accelerometer weighed 11 g and has dimensions of 32.5 mm (length) × 23 mm (width) × 7.6 mm (height). The sensors were configured at a sampling rate of 25 Hz (25 records per second) and time-synchronised to a computer clock based on Australian Eastern Daylight Time (AEDT). The expected battery life at this setting was approximately 35 days. Cattle movement was captured through static and dynamic accelerations (gravity; g) recorded over the three perpendicular axes of X (vertical; dorso-ventral), Y (horizontal; medio-lateral) and Z (longitudinal; anterior-posterior) (Figure 1). The accelerometer data was temporarily stored on a 512 MB non-volatile flash memory within the sensor in a .cwa file format. At the end of the study, both ear-tags and neck-collars were removed and the accelerometer data were downloaded and converted to a .csv file format using the proprietary software (OmGUI version 1.0.0.43, Axivity Ltd., Newcastle Helix, Newcastle, UK).

2.3. Experimental Procedures and Observations

This study was conducted over 14 days. The first seven days involved a habituation period then followed by a seven-day experimental period. All cattle were situated in individual rectangular pens with a dimension of 4 m (length) × 2 m (width) × 2 m (height) within an animal house (Figure 2), and were offered oaten chaff in buckets and water in automatic water bowls, ad libitum. The automated drinking bowls were approximately 75 cm above the floor on the left-hand side of the pens. Four commercial mineral block supplements (22 cm length × 22 cm width × 25 cm height) weighing approximately 16 kg, consisting of 7% urea and 10% molasses (Peak 50; Olsson’s Pacific Salt®, Yennora, NSW, Australia), were strapped to a metal frame (22.5 cm length × 22.5 cm width × 5 cm height) attached to the right-hand side of the pen’s panels and placed on the concrete floor alongside individual cattle.
After the seven-day habituation period, behaviours of the cattle were video-recorded for six hours daily (1000–1600 h) for seven days when access to mineral block supplements was provided. Video recordings were taken using four smartphone cameras [J5 Pro SM-J530Y (Samsung Engineering Co. Ltd., Gangdong-gu, Seoul, Korea), A9 (HTC Corp., Xindian, Taiwan, China), G6 Play (Motorola Inc., Chicago, IL, USA) and A5s (OPPO Mobile Telecommunications Corp., Ltd., Dongguan, Guangdong, China)]. The smartphones were placed on tripods and positioned 75 cm above the floor in front of the block supplements outside the pens. Video resolution for all phones was set at 1080 p (1920 × 1080 pixels) quality. Each smartphone was equipped with a 32 GB microSD card (SanDisk®, Milpitas, CA, USA) for video file storage. Timestamp Camera Free Application [30] was installed on the smartphones so that clock times on the display were automatically synchronised to AEDT Zone. Video files stored on the micro SD cards were then transferred daily onto a remote computer.

2.4. Video Analysis and Behaviour Classification

Each video file was observed and annotated using Sheep Movement Classification Interface software (version 1.1., UNE Precision Agriculture Research Group, Armidale, NSW, Australia) to generate annotated daily files for each steer in a .csv file format. Discrete events of individual behaviours were annotated to reflect the mutually exclusive behaviours of licking, eating, standing and lying (Table 1). The software time-stamped the beginning and the end of each event over a particular time regardless the type animals [6,10,31]. Each event was processed only if the cattle performed an observed behaviour for a minimum duration of 10 s to avoid multiple events merged in one epoch. To classify licking, all observed behaviours were partitioned into three groups of ethograms as follows:
  • Licking vs. eating vs. standing vs. lying.
  • Licking vs. eating vs. inactive (standing + lying).
  • Licking vs. non-licking (eating + standing + lying).

2.5. Processing of Raw Accelerometer Data

Accelerometer data were collected continuously for seven days and processed using the R statistics environment [32]. The average size of the .csv files (±SD) generated by each accelerometer throughout the study was 718 ± 17.5 MB. To facilitate analysis, these files were trimmed and extracted into separate files based on daily observational time (1000–1600 h) using the “lubridate” package [33]. Subsets of the accelerometer data were then annotated with corresponding behaviours. Time between accelerometers and clocks stamped on the video files had been automatically synchronised according to AEDT zone. All annotated files were then merged using the “dplyr” package [34] to create a new file for each deployed accelerometer.

2.6. Calculation of the Feature Relative Importance

The two datasets that contained X-, Y-, and Z-axes values and behaviour annotations were further discretised into a 10 s-time interval or windows size (epoch). Thus, there were 250 records required to create one row (or feature value) in each new dataset [11]. The 10-s time interval was chosen according to González et al. [35] who indicated that intervals longer than 10 s deteriorated the performance of behavioural classification model. Twenty movement features for each annotated behaviour were calculated, which included minimum (MINX,Y,Z), maximum (MAXX,Y,Z), average (AVGX,Y,Z), and standard deviation (SDX,Y,Z) values of X-, Y-, and Z-axis, magnitude (MAG), movement variation (MVA), signal magnitude area (SMA), entropy (ENT), energy (ENG), pitch (PIT), roll (ROL) and inclination (INC). Mathematical formulas for these features are shown in Table 2 [6,8,11].

2.7. Development of Behaviour Classification Model

Each behaviour dataset for licking, eating, standing, and lying from all cattle was proportionally split into 70% (training) and 30% (testing) in the R statistic environment [11,36] using the “createDataPartition” function of the Classification and Regression Training (caret) package [37]. This process was independently performed in datasets from every deployment mode. The training dataset was assigned to develop the behaviour classification model, while the testing dataset was employed to validate performance of the model when applied to a different dataset [38]. In the model development, a 10-fold cross-validation was used to partition the training dataset into subsets of non-overlapping training and testing datasets for optimising parameter selection during the training process [23,39].
Four machine learning (ML) algorithms were employed to develop behaviour classification models: (1) decision trees (DT); (2) random forest (RF); (3) k-nearest neighbour (kNN); and (4) support vector machine (SVM). The DT algorithm constructs a group of binary trees based on the values of selected variables. It recursively splits the dataset into subsets with consistent values of the predictor variables [40]. The RF algorithm combines a set of decision trees with each tree having a random subset of variables that evenly distributed across the trees within the forest [41]. The kNN algorithm relies on the assumption that adjacent samples belong to a similar category [42]. The SVM algorithm establishes a hyperplane for splitting observations and maximising the distance of observations from the hyperplane. Hence, it is more appropriate for binary classification [43]. These algorithms were chosen as they are computationally easy to implement and have been used in previous studies [9,20,21,23,42,44,45].

2.8. Feature Selection

The “randomForest” and “varImpPlot” function of the “randomForest” package [46] were used on the training dataset to rank and visualise the most important features as prediction (dependent) variables according to their mean Gini values [6,39]. In “randomForest” setting, the number of variables that were arbitrarily sampled to split the junction of the tree (mtry) was set at 5 (approximately equal to square root of the number of prediction variables) and the number of trees (ntree) was set at 500. In RF and SVM algorithms, all features were used as prediction variables for developing the model while only the top three important features were selected for DT and kNN algorithms, respectively. Both DT and kNN are simple algorithms and only require a small number (3–5) of the top important features for model development based on their mean Gini values. Use of the top important features in the DT algorithm reduces the redundancies of the model development [47]. For the kNN, the higher number of features/variables used will lower the performance of the algorithm [48]. Previous studies on the accelerometer using DT and kNN have been described by Alvarenga et al. [49], Alvarenga et al. [11], and Shen et al. [42]. Analysis was performed using the “caret” package [37] within the R statistics environment.

2.9. Validation of Behaviour Classification Model

The behaviour classification models developed using the training dataset for each ML algorithm across the three ethograms in both deployment modes were independently applied to the testing dataset for validating their performance. The confusion matrix for each ML model prediction was computed using the “caret” package [37]. To determine the best model for each ethogram within the two accelerometer deployment modes, the overall accuracy, sensitivity, positive predictive value (PPV) and Cohen’s kappa coefficients of the predictions were then calculated based on the confusion matrix values using the following formulas:
Overall   accuracy = ( TP + TN ) ( TP + TN + FP + FN )
Sensitivity = TP ( TP + FN )
Positive   Predictive   Value   ( PPV ) = TP ( TP + FP )
where TP (true positive) is the number of samples in which the observed behaviour was appropriately observed and classified, FP (false positive) is the number of samples in which other behaviours were classified as observed behaviour, TN (true negative) is the number of samples where other behaviours were appropriately observed and classified, and FN (false negative) is the number of samples in which the observed behaviour was classified as other behaviours [50]. Performance of the confusion matrix constituent was classified as: (1) high (90–100%), (4) moderate (80–89%), (5) low (70–79%), and (6) poor (<70%).
The inter-rated reliability test using Cohen’s kappa coefficients was likewise applied to select the best deployment for capturing values of the feature’s relative importance. The kappa statistic signifies the extent to which collection of the data represent the variables measured [51]. This would compare the accuracy of each accelerometer deployment in assessing features used to develop classification models. Kappa is suitable for imbalanced testing datasets without a very small minority class [52]. Under the definition of McHugh [51], the coefficient was classified as none (0–0.20), minimal (0.21–0.39), weak (0.40–0.59), moderate (0.60–0.79), strong (0.80–0.90), and almost perfect (>0.90).

3. Results

No aberrant behaviours resulting from accelerometer deployments were observed in any cattle throughout the experiment. The acceleration signals of the X-, Y-, and Z-axes sampled over a 60 s of observation from the neck-collar and ear-tag accelerometers for licking, eating, standing, and lying behaviours are depicted in Figure 3. Total number of samples (data points) obtained from the 10 s epoch for developing and validating behaviour classification models was 2362 for neck-collar and 2271 for ear-tag accelerometers, respectively. The proportion of samples across licking, eating, standing, and lying were consecutively 22.8% (n = 538), 26.2% (n = 618), 25.9% (n = 612,) and 25.1% (n = 594) for neck-collar and 26.2% (n = 594), 26.4% (n = 600), 25.5% (n = 580), and 21.9% (n = 497) for ear-tag deployment modes. The failure of the sensors to capture the acceleration signals has contributed to the unequal number of datapoints (samples) between neck-collar and ear-tag accelerometers.

3.1. Selection of the Most Important Features

According to the mean Gini values, MVA and SDx were the first and second most important features for distinguishing licking from other observed behaviours across the three ethograms within both neck-collar and ear-tag deployment modes except for ethogram 3 of the neck-collar deployment (Table 3). The distribution of MVA of the four mutually exclusive behaviours for neck-collar and ear-tag accelerometers is displayed in Figure 3. The mean (±SD) of neck-collar and ear-tag MVA for eating behaviour was the highest among the four mutually-exclusive behaviours (0.20 (±0.07) and 0.30 (±0.05), respectively). Mean (±SD) MVA for licking was 0.18 (±0.06) and 0.17 (±0.04), lying 0.04 (±0.03) and 0.09 (±0.07), and standing 0.03 (±0.04) and 0.07 (±0.08) for the neck-collar and ear-tag, respectively. This sequential trend was consistent across both neck-collar and ear-tag accelerometer deployment modes (Figure 4A,B).

3.2. Overall Performance of the Behaviour Classification Models

The overall performance of ML algorithms in predicting behaviours of beef cattle using the testing dataset across the three different ethograms within the neck-collar and ear-tag accelerometers is presented in Table 4. The highest performance across all categories was consistently obtained from the RF algorithm with an accuracy ranging from moderate to high and kappa from strong to almost perfect (accuracy: 88–98%; kappa: 0.83–0.94) followed by SVM (accuracy: 83–97%; kappa: 0.56–0.93), kNN (accuracy: 71–94%; kappa: 0.61–0.89), and DT (accuracy: 65–91%; kappa: 0.52–0.77). The highest performance for the RF model was found in ethogram 3 of neck-collar accelerometer when differentiating licking and non-licking behaviours while the lowest performance of RF model was found in ethogram 1 of ear-tag accelerometer when classifying the four mutually-exclusive behaviours.

3.3. Performance of the Best Classification Model for Determination of Licking Behaviour

The performances of the RF algorithm model in classifying licking behaviour of beef cattle are described in Table 5 (ethogram 1), Table 6 (ethogram 2) and Table 7 (ethogram 3). Overall, the neck-collar deployed accelerometer had a slightly better performance based on the sensitivity and PPV than that of the ear-tag deployed accelerometer except for the PPV in ethogram 2 when distinguishing licking from eating and inactive behaviours. The RF model developed from neck-collar datasets achieved the highest sensitivity in ethogram 2 (99%) and the highest PPV in ethogram 3 (96%). When using ear-tag datasets, the uppermost sensitivity and PPV of the RF model were found in ethogram 1 (93%) and in ethogram 2 (95%), respectively.

4. Discussion

Dependency upon integration of radio frequency identification (RFID) and automatic feeding systems to remotely monitor supplement intake of beef cattle has prompted the use of more efficient and accurate technologies for the collection of individual information in larger herds without disrupting their daily routines and natural behaviours. Tri-axial accelerometers have the capability of accurately differentiating mutually-exclusive behaviours of grazing ruminants [6], and this is fundamental to predict individual feed intake based on time-spent feeding [53]. For cattle offered mineral block supplements, licking events and time spent licking have to be appropriately distinguished from other behaviours to develop an algorithm for predicting individual mineral block consumption. Supplementing cattle with mineral blocks is usually conducted while cattle are grazing in the paddock. This current study was designed as a pilot study to examine the capability of tri-axial accelerometers to differentiate the signals associated with licking and other behaviours. Therefore, only a small number of cattle were used and closely monitored while housed in pens. Further studies would need to be conducted with more animals to test the suitability of the sensor and algorithms under field conditions.
In this present study, MVA and SDX were the top two features used to classify the licking behaviours of beef cattle by the ML algorithms employed on the tri-axial accelerometer data. This trend was consistent across five out of six ethograms (3 for each deployment mode). Gao et al. [8] explained that MVA is the variability of waveform length aggregate of amplitude, frequency and duration over the X-, Y- and Z-axes values while SDX represents distribution of the signal within the X-axis values. Hence, the differentiation of X-axis values was evidence of apparent dorso-ventral moving direction recorded by neck-collar and ear-tag accelerometers when the event changed from licking to other behaviours. A recent study using an ear-tag accelerometer configured at 12.5 Hz with a 10 s time interval reported MVA and SDX as the two most important features to classify grazing, lying, standing and walking events of sheep [39]. The presence of MVA and SDX in our study indicated that the ML algorithms discriminated the behaviours based on the difference of movement patterns between behaviours.
For the neck-collar deployment, AVGZ was the first important feature in ethogram 3 followed by SMA and MAXZ and is the most consistent feature within the top three features in all ethograms. González et al. [35] found that SD of the vertical (up-down) acceleration from neck-collar accelerometer was more sensitive for differentiating grazing behaviours in cattle because of its ability to capture head positions. The change in Z-axis values in the present study signified that the neck-collar accelerometers captured the distinction of longitudinal (anterior-posterior) movements of the head when the cattle were licking. During licking the head is lowered and as the tongue protrudes, the head moves back and forth in the longitudinal plane. This might relate to the high accuracy of the neck-collar accelerometer in a situation where similar head orientation was captured from licking and biting behaviours. Also, SMA is a suitable measure to differentiate static and dynamic activities from the accelerometer signals [8,19,54]. Hence, the presence of SMA in ethogram 3 is indicative of the neck-collar accelerometer’s capability to distinguish between licking and inactive behaviours.
By using random forest ML algorithm, two deployment modes (neck-collar and ear-tag) of tri-axial accelerometers were capable of classifying licking by contrast with eating, standing, and lying behaviours with high accuracy (>90%; Table 4). The behaviour classification model for the RF algorithm was superior to that of SVM, kNN, and DT algorithms across all ethograms within the two deployment locations. Compared to other ML classifiers, RF has the capability to rank the most important predictor variables and to model multifarious interactions among variables to improve prediction accuracy [55]. Hence, instead of using all variables, RF randomly selects subsets of variables to determine the best split of each junction of the tree [43]. A study using a neck-collar accelerometer on dairy cows found that the RF algorithm was able of categorising grazing, ruminating, walking, and resting with an overall accuracy and kappa of 0.97 and 0.95, respectively [45]. The high accuracy of RF is mainly because of its robustness to noisy data and ability to handle non-linear correlated data [56].
The lower performance of the DT algorithm in this present study might be because of over-fitting the model and the hierarchical partitioning of each tree that reduces (1) the ability to categorise relationship between variables and (2) the effective sample sizes causing a difficulty in identifying rules and trends in each subsample [43]. It should be noted that in ethogram 2, inactive behaviour combined standing and lying while in ethogram 3, non-licking behaviour combined eating consisting of biting (head lowered) and chewing (head raised), standing (head raised) and lying (resting). Therefore, it was likely that the accelerometer signals from licking and biting when the cattle lowered the head would be misclassified, as the feeding bucket and mineral block supplement were positioned at a relatively similar height from the floor. This might be responsible for the moderate sensitivity of ear-tag deployment in ethogram 3 (<90%) and may have affected overall accuracy of the algorithm. In addition, lower PPV and sensitivity of the ear-tag accelerometer may have occurred because of a more flexible attachment of the sensor to the ear that increased the false positive rate. A lower ear-attached accelerometer (SensOor) performance was reported by Wolfger et al. [18], where negative predictive value and sensitivity of feeding class were 97% and 93%, respectively, with low specificity (70%) and poor PPV (54%). This was because of a high proportion of rumination that was categorised as feeding in their model.
In this current study, the behaviour classification model for the neck-collar tri-axial accelerometer was more accurate than the ear-tag tri-axial accelerometer, with Cohen’s Kappa coefficient for the neck-collar deployment model being also superior to the ear-tag deployment. The substantial agreement between actual and model-predicted behaviour was higher in the present study than studies with dairy cows by Bikker et al. [57] and dairy calves by Roland et al. [16] who found 0.77 and 0.68 of Cohen’s kappa value for eating and drinking using an ear-attached accelerometer. The lower kappa coefficient for the ear-tag accelerometer compared to that for the neck-collar was affected by complex and repetitive ear movements. Barwick et al. [6] reported that a possible interdependency of ear-tag acceleration signals from body movements might cause uniformity of the signals from different behaviours. Hence, rigid attachment of the sensors would maintain their orientation and consistent signal to generate accurate behaviour classification.
Apart from the lower performance of ear-tag based accelerometers compared to the neck-collar accelerometers, the practicalities of adoption in commercial contexts favour ear-attached sensors. The smaller size makes it less invasive to the cattle and costs less to implement per individual. Therefore, classification algorithms must be capable of dealing with interdependent dynamic accelerations. The potential of an ear-tag based sensor to accurately discriminate licking would be an improvement enabling measuring mineral block supplement intake based on time spent licking by individual cattle. It also offers versatility and is an efficient way to monitor and harness individual information particularly in an extensive environment. Advancements in remote monitoring systems using internet technology are required to remotely transmit the data from the ear-tag sensor to a central database system for improving production efficiency by reducing time of mustering for individual data collection. However, in commercial systems where cattle are already fitted with neck-collars for other purposes, measuring licking with neck-collar accelerometers would be ideal due to the greater accuracy with this deployment.

5. Conclusions

The behaviour classification model developed by random forest ML algorithm for both deployment modes performed well (accuracy: 88–98%; kappa: 0.83–0.94) compared to SVM, kNN and DT algorithms, with the neck-collar deployment mode performing slightly better in classifying licking behaviour within three different ethograms than the ear-tag deployment mode. This is partly because of the firm attachment of the sensor to the collar generating consistent orientation and acceleration signals. Movement of the ear independently from the body might also be responsible for lowering sensitivity and PPV of the model. For commercial use in large herds for grazing systems, however, the ear-tag deployment mode is more feasible and likely to be more cost efficient than the neck-collar deployment as current advancement in electronic ear tags for cattle allows attachment of automatic devices. This current study confirms that the accelerometer is a promising technology to differentiate between licking and other behaviours and provides important research evidence to continue applying this methodology to a paddock environment and to test the model performance in a commercial situation.

Author Contributions

Conceptualization, G.S., J.B., R.D. and R.H.; methodology, G.S., J.B. and R.D.; software, G.S. and J.B.; validation, R.D., J.B. and R.H.; formal analysis, G.S. and J.B.; investigation, R.H., R.D. and F.C.; resources, R.H. and F.C.; data curation, G.S. and J.B.; writing—original draft preparation, G.S.; writing—review and editing, R.H., R.D., F.C. and J.B.; visualization, G.S.; supervision, R.H., F.C., and J.B.; project administration, R.H. and J.B.; funding acquisition, R.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Meat and Livestock Australia (MLA) Donor Company as part of Project “Optimising supplement use in Australia’s northern beef industry” (P.PSH.08570) within the Livestock Productivity Partnership (LPP).

Institutional Review Board Statement

Research protocols and use of animals were approved by the University of New England’s Animal Ethics Committee (AEC19-041 29/04/2019) in accordance with the “Australian Code for the Care and Use of Animals for Scientific Purposes”.

Data Availability Statement

The data presented in this study are available upon request from the corresponding author.

Acknowledgments

Graeme Bremner, Bradley Dawson and Christopher Weber are thanked for their technical assistance.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bowman, J.G.P.; Sowell, B.F. Delivery method and supplement consumption by grazing ruminants: A review. J. Anim. Sci. 1997, 75, 543–550. [Google Scholar] [CrossRef] [Green Version]
  2. Yelich, J.V.; Ellison, M.J.; Hall, J.B.; McGee, M. Intake behaviors of yearling steers grazing irrigated pasture and receiving either a free-choice salt-based mineral or a low-moisture molasses-based tub mineral. Transl. Anim. Sci. 2019, 3, 749–760. [Google Scholar] [CrossRef] [Green Version]
  3. Imaz, J.A.; García, S.; González, L.A. Application of in-paddock technologies to monitor individual self-fed supplement intake and liveweight in beef cattle. Animals 2020, 10, 93. [Google Scholar] [CrossRef] [Green Version]
  4. Dixon, R.M.; Smith, D.R.; Reid, A. Lithium salts as a marker of intake of supplements by cattle. Aust. J. Exp. Agric. 2003, 43, 37–46. [Google Scholar] [CrossRef] [Green Version]
  5. Simanungkalit, G.; Hegarty, R.S.; Cowley, F.C.; McPhee, M.J. Evaluation of remote monitoring units for estimating body weight and supplement intake of grazing cattle. Animal 2020, 14, s332–s340. [Google Scholar] [CrossRef]
  6. Barwick, J.; Lamb, D.W.; Dobos, R.C.; Welch, M.; Trotter, M. Categorising sheep activity using a tri-axial accelerometer. Comput. Electron. Agric. 2018, 145, 289–297. [Google Scholar] [CrossRef]
  7. Richeson, J.T.; Lawrence, T.E.; White, B.J. Using advanced technologies to quantify beef cattle behavior. Transl. Anim. Sci. 2018, 2, 223–229. [Google Scholar] [CrossRef] [Green Version]
  8. Gao, L.; Campbell, H.A.; Bidder, O.R.; Hunter, J. A Web-based semantic tagging and activity recognition system for species’ accelerometry data. Ecol. Inform. 2013, 13, 47–56. [Google Scholar] [CrossRef]
  9. Vázquez-Diosdado, J.A.; Barker, Z.E.; Hodges, H.R.; Amory, J.R.; Croft, D.P.; Bell, N.J.; Codling, E.A. Classification of behaviour in housed dairy cows using an accelerometer-based activity monitoring system. Anim. Biotelem. 2015, 3, 15. [Google Scholar] [CrossRef] [Green Version]
  10. Barwick, J.; Lamb, D.W.; Dobos, R.C.; Welch, M.; Schneider, D.; Trotter, M. Identifying sheep activity from tri-axial acceleration signals using a moving window classification model. Remote Sens. 2020, 12, 646. [Google Scholar] [CrossRef] [Green Version]
  11. Alvarenga, F.A.P.; Borges, I.; Oddy, V.H.; Dobos, R.C. Discrimination of biting and chewing behaviour in sheep using a tri-axial accelerometer. Comput. Electron. Agric. 2020, 168, 105051. [Google Scholar] [CrossRef]
  12. Kour, H.; Patison, K.P.; Corbet, N.J.; Swain, D.L. Validation of accelerometer use to measure suckling behaviour in Northern Australian beef calves. Appl. Anim. Behav. Sci. 2018, 202, 1–6. [Google Scholar] [CrossRef]
  13. Tamura, T.; Okubo, Y.; Deguchi, Y.; Koshikawa, S.; Takahashi, M.; Chida, Y.; Okada, K. Dairy cattle behavior classifications based on decision tree learning using 3-axis neck-mounted accelerometers. Anim. Sci. J. 2019, 90, 589–596. [Google Scholar] [CrossRef]
  14. Pereira, G.M.; Heins, B.J.; O’Brien, B.; McDonagh, A.; Lidauer, L.; Kickinger, F. Validation of an ear tag–based accelerometer system for detecting grazing behavior of dairy cows. J. Dairy Sci. 2020, 103, 3529–3544. [Google Scholar] [CrossRef]
  15. Williams, L.R.; Moore, S.T.; Bishop-Hurley, G.J.; Swain, D.L. A sensor-based solution to monitor grazing cattle drinking behaviour and water intake. Comput. Electron. Agric. 2020, 168, 105141. [Google Scholar] [CrossRef]
  16. Roland, L.; Lidauer, L.; Sattlecker, G.; Kickinger, F.; Auer, W.; Sturm, V.; Efrosinin, D.; Drillich, M.; Iwersen, M. Monitoring drinking behavior in bucket-fed dairy calves using an ear-attached tri-axial accelerometer: A pilot study. Comput. Electron. Agric. 2018, 145, 298–301. [Google Scholar] [CrossRef]
  17. Greenwood, P.L.; Paull, D.R.; McNally, J.; Kalinowski, T.; Ebert, D.; Little, B.; Smith, D.V.; Rahman, A.; Valencia, P.; Ingham, A.B. Use of sensor-determined behaviours to develop algorithms for pasture intake by individual grazing cattle. Crop Pasture Sci. 2018, 68, 1091–1099. [Google Scholar] [CrossRef]
  18. Wolfger, B.; Timsit, E.; Pajor, E.A.; Cook, N.; Barkema, H.W.; Orsel, K. Accuracy of an ear tag-attached accelerometer to monitor rumination and feeding behavior in feedlot cattle. J. Anim. Sci. 2015, 93, 3164–3168. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Robert, B.; White, B.J.; Renter, D.G.; Larson, R.L. Evaluation of three-dimensional accelerometers to monitor and classify behavior patterns in cattle. Comput. Electron. Agric. 2009, 67, 80–84. [Google Scholar] [CrossRef]
  20. Foldager, L.; Trénel, P.; Munksgaard, L.; Thomsen, P.T. Technical note: Random forests prediction of daily eating time of dairy cows from 3-dimensional accelerometer and radiofrequency identification. J. Dairy Sci. 2020, 103, 6271–6275. [Google Scholar] [CrossRef] [PubMed]
  21. Abell, K.M.; Theurer, M.E.; Larson, R.L.; White, B.J.; Hardin, D.K.; Randle, R.F. Predicting bull behavior events in a multiple-sire pasture with video analysis, accelerometers, and classification algorithms. Comput. Electron. Agric. 2017, 136, 221–227. [Google Scholar] [CrossRef]
  22. Martiskainen, P.; Järvinen, M.; Skön, J.; Tiirikainen, J.; Kolehmainen, M.; Mononen, J. Cow behaviour pattern recognition using a three-dimensional accelerometer and support vector machines. Appl. Anim. Behav. Sci. 2009, 119, 32–38. [Google Scholar] [CrossRef]
  23. Smith, D.R.; Rahman, A.; Bishop-Hurley, G.J.; Hills, J.; Shahriar, S.; Henry, D.; Rawnsley, R. Behavior classification of cows fitted with motion collars: Decomposing multi-class classification into a set of binary problems. Comput. Electron. Agric. 2016, 131, 40–50. [Google Scholar] [CrossRef]
  24. Dutta, R.; Smith, D.R.; Rawnsley, R.; Bishop-Hurley, G.J.; Hills, J.; Timms, G.; Henry, D. Dynamic cattle behavioural classification using supervised ensemble classifiers. Comput. Electron. Agric. 2015, 111, 18–28. [Google Scholar] [CrossRef]
  25. Rahman, A.; Smith, D.V.; Little, B.; Ingham, A.B.; Greenwood, P.L.; Bishop-Hurley, G.J. Cattle behaviour classification from collar, halter, and ear tag sensors. Inf. Process. Agric. 2018, 5, 124–133. [Google Scholar] [CrossRef]
  26. Williams, L.R.; Bishop-Hurley, G.J.; Anderson, A.E.; Swain, D.L. Application of accelerometers to record drinking behaviour of beef cattle. Anim. Prod. Sci. 2019, 59, 122–132. [Google Scholar] [CrossRef]
  27. Eggington, A.R.; McCosker, T.H.; Graham, C.A. Intake of lick block supplements by cattle grazing native monsoonal tallgrass pastures in the Northern Territory. Rangel. J. 1990, 12, 7–13. [Google Scholar] [CrossRef]
  28. Dixon, R.M.; Anderson, A.; Petherick, J.C. Inclusion of cottonseed meal into loose mineral mix supplements increases the voluntary intake of the supplement by grazing heifers. Anim. Prod. Sci. 2017, 57, 315–319. [Google Scholar] [CrossRef]
  29. Kreulen, D.A. Lick use by large herbivores: A review of benefits and banes of soil consumption. Mammal Rev. 1985, 15, 107–123. [Google Scholar] [CrossRef]
  30. Chen, Y. Timestamp Camera Free v.1.161. (Android). 2019. Available online: http://www.timestampcamera.com/ (accessed on 25 August 2019).
  31. Barwick, J.; Lamb, D.W.; Dobos, R.C.; Schneider, D.; Welch, M.; Trotter, M. Predicting lameness in sheep activity using tri-axial acceleration signals. Animals 2018, 8, 12. [Google Scholar] [CrossRef] [Green Version]
  32. R Core Team. R: A Language and Environment for Statistical Computing. 2020. Available online: https://www.R-project.org/ (accessed on 23 May 2020).
  33. Grolemund, G.; Wickham, H. Dates and times made easy with lubridate. J. Stat. Softw. 2011, 40, 1–25. [Google Scholar] [CrossRef]
  34. Wickham, H.; François, R.; Henry, L.; Müller, K. Dplyr: A Grammar of Data Manipulation v.0.8.5. 2020. Available online: https://CRAN.R-project.org/package=dplyr (accessed on 23 May 2020).
  35. González, L.A.; Bishop-Hurley, G.J.; Handcock, R.N.; Crossman, C. Behavioral classification of data from collars containing motion sensors in grazing cattle. Comput. Electron. Agric. 2015, 110, 91–102. [Google Scholar] [CrossRef]
  36. Walton, E.; Casey, C.; Mitsch, J.; Vázquez-Diosdado, J.A.; Yan, J.N.; Dottorini, T.; Ellis, K.A.; Winterlich, A.; Kaler, J. Evaluation of sampling frequency, window size and sensor position for classification of sheep behaviour. R. Soc. Open Sci. 2018, 5, 171442. [Google Scholar] [CrossRef] [Green Version]
  37. Kuhn, M. Caret: Classification and Regression Training v.6.0-86. 2020. Available online: https://CRAN.R-project.org/package=caret (accessed on 23 May 2020).
  38. Kuhn, M.; Johnson, K. Applied Predictive Modeling; Springer: New York, NY, USA, 2013. [Google Scholar] [CrossRef]
  39. Fogarty, E.S.; Swain, D.L.; Cronin, G.M.; Moraes, L.E.; Trotter, M. Behaviour classification of extensively grazed sheep using machine learning. Comput. Electron. Agric. 2020, 169, 105175. [Google Scholar] [CrossRef]
  40. Krzywinski, M.; Altman, N. Points of Significance: Classification and regression trees. Nat. Methods 2017. [Google Scholar] [CrossRef]
  41. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
  42. Shen, W.; Cheng, F.; Zhang, Y.; Wei, X.; Fu, Q.; Zhang, Y. Automatic recognition of ingestive-related behaviors of dairy cows based on triaxial acceleration. Inf. Process. Agric. 2020, 7, 427–443. [Google Scholar] [CrossRef]
  43. Nathan, R.; Spiegel, O.; Fortmann-Roe, S.; Harel, R.; Wikelski, M.; Getz, W.M. Using tri-axial acceleration data to identify behavioral modes of free-ranging animals: General concepts and tools illustrated for griffon vultures. J. Exp. Biol. 2012, 215, 986–996. [Google Scholar] [CrossRef] [Green Version]
  44. Carslake, C.; Vázquez-Diosdado, J.A.; Kaler, J. Machine learning algorithms to classify and quantify multiple behaviours in dairy calves using a sensor: Moving beyond classification in precision livestock. Sensors 2021, 21, 88. [Google Scholar] [CrossRef]
  45. Riaboff, L.; Poggi, S.; Madouasse, A.; Couvreur, S.; Aubin, S.; Bédère, N.; Goumand, E.; Chauvin, A.; Plantier, G. Development of a methodological framework for a robust prediction of the main behaviours of dairy cows using a combination of machine learning algorithms on accelerometer data. Comput. Electron. Agric. 2020, 169, 105179. [Google Scholar] [CrossRef]
  46. Liaw, A.; Wiener, M. Classification and regression by randomForest. R News 2002, 2, 18–22. [Google Scholar]
  47. Sugumaran, V.; Muralidharan, V.; Ramachandran, K.I. Feature selection using decision tree and classification through proximal support vector machine for fault diagnostics of roller bearing. Mech. Syst. Signal Process. 2007, 21, 930–942. [Google Scholar] [CrossRef]
  48. Tahir, M.A.f.; Bouridane, A.; Kurugollu, F. Simultaneous feature selection and feature weighting using Hybrid Tabu Search/K-nearest neighbor classifier. Pattern Recognit. Lett. 2007, 28, 438–446. [Google Scholar] [CrossRef]
  49. Alvarenga, F.A.P.; Borges, I.; Palkovič, L.; Rodina, J.; Oddy, V.H.; Dobos, R.C. Using a three-axis accelerometer to identify and classify sheep behaviour at pasture. Appl. Anim. Behav. Sci. 2016, 181, 91–99. [Google Scholar] [CrossRef]
  50. Riaboff, L.; Aubin, S.; Bedere, N.; Couvreur, S.; Madouasse, A.; Goumand, E.; Chauvin, A.; Plantier, G. Evaluation of pre-processing methods for the prediction of cattle behaviour from accelerometer data. Comput. Electron. Agric. 2019, 165, 104961. [Google Scholar] [CrossRef]
  51. McHugh, M.L. Interrater reliability: The kappa statistic. Biochem. Med. 2012, 22, 276–282. [Google Scholar] [CrossRef]
  52. Wardhani, N.W.S.; Rochayani, M.Y.; Iriany, A.; Sulistyono, A.D.; Lestantyo, P. Cross-validation metrics for evaluating classification performance on imbalanced data. In Proceedings of the International Conference on Computer, Control, Informatics and its Applications (IC3INA), Tangerang, Indonesia, 23–24 October 2019; pp. 14–18. [Google Scholar]
  53. De Mol, R.M.; Goselink, R.M.A.; van Riel, J.; Knijn, H.M.; Van Knegsel, A.T.M. The relation between eating time and feed intake of dairy cows. In Precision Dairy Farming 2016; Kamphuis, C., Steeneveld, W., Eds.; Wageningen Academic Publishers: Wageningen, The Netherlands, 2016; pp. 387–392. [Google Scholar] [CrossRef]
  54. Khan, A.M.; Lee, Y.K.; Kim, T.S. Accelerometer signal-based human activity recognition using augmented autoregressive model coefficients and artificial neural nets. In Proceedings of the 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Vancouver, BC, Canada, 20–24 August 2008; pp. 5172–5175. [Google Scholar]
  55. Cutler, D.R.; Edwards, T.C., Jr.; Beard, K.H.; Cutler, A.; Hess, K.T.; Gibson, J.; Lawler, J.J. Random forests for classification in ecology. Ecology 2007, 88, 2783–2792. [Google Scholar] [CrossRef]
  56. Mansbridge, N.; Mitsch, J.; Bollard, N.; Ellis, K.A.; Miguel-Pacheco, G.G.; Dottorini, T.; Kaler, J. Feature selection and comparison of machine learning algorithms in classification of grazing and rumination behaviour in sheep. Sensors 2018, 18, 3532. [Google Scholar] [CrossRef] [Green Version]
  57. Bikker, J.P.; Van Laar, H.; Rump, P.; Doorenbos, J.; Van Meurs, K.; Griffioen, G.M.; Dijkstra, J. Evaluation of an ear-attached movement sensor to record cow feeding behavior and activity. J. Dairy Sci. 2014, 97, 2974–2979. [Google Scholar] [CrossRef]
Figure 1. Orientation of the tri-axial accelerometers when attached to both the ear and the neck. Both deployments had the same axis orientation.
Figure 1. Orientation of the tri-axial accelerometers when attached to both the ear and the neck. Both deployments had the same axis orientation.
Animals 11 01153 g001
Figure 2. The layout of the individual pen where each animal was confined during the experimental period with a mineral block supplement restrictively provided.
Figure 2. The layout of the individual pen where each animal was confined during the experimental period with a mineral block supplement restrictively provided.
Animals 11 01153 g002
Figure 3. Raw values of the tri-axial accelerometer signals fitted on the neck-collar (A) and ear-tag (B) for licking, eating, standing, and lying behaviours at 25 Hz sampling rate over 60 s of observation. The grey, red, and blue lines represent X-, Y-, and Z- axes, respectively.
Figure 3. Raw values of the tri-axial accelerometer signals fitted on the neck-collar (A) and ear-tag (B) for licking, eating, standing, and lying behaviours at 25 Hz sampling rate over 60 s of observation. The grey, red, and blue lines represent X-, Y-, and Z- axes, respectively.
Animals 11 01153 g003
Figure 4. Distribution of movement variation (MVA) of the four mutually-exclusive behaviours within the neck-collar (A) and ear-tag accelerometers (B).
Figure 4. Distribution of movement variation (MVA) of the four mutually-exclusive behaviours within the neck-collar (A) and ear-tag accelerometers (B).
Animals 11 01153 g004
Table 1. Behaviours description of individually confined cattle for ethogram classification.
Table 1. Behaviours description of individually confined cattle for ethogram classification.
BehaviourDescription
LickingMinor limb movement in static standing position with head down approaching the mineral block supplement and the tongue presenting to the block surface.
EatingStationary with minor limb movements, head lowered approaching feeding bucket and biting the chaff or head raised with jaw movement (chewing or ruminating).
StandingStanding stationary with head raised devoid of jaw movements.
LyingRecumbent on the sternum or side with minor head movements and one side of the trunk was placed on the ground.
Table 2. Movement features calculated from tri-axial accelerometer X-, Y- and Z- axis values for each epoch.
Table 2. Movement features calculated from tri-axial accelerometer X-, Y- and Z- axis values for each epoch.
FeatureEquation
Magnitude 1 n ( i = 1 n ( x i 2 + y i 2 +   z i 2 ) ( i ) )
Movement Variation 1 n 1 ( i = 1 n 1 | x i + 1   x i | ( i ) + i = 1 n 1 | y i + 1   y i | ( i ) + i = 1 n 1 | z i + 1   z i | ( i ) )
Signal Magnitude Area 1 n ( i = 1 n | x ( i ) | + i = 1 n | y ( i ) | + i = 1 n | z ( i ) | )
Entropy 1 n ( i = 1 n ( 1 + ( x i +   y i +   z i ) ) 2   ln ( 1 + ( x i +   y i +   z i ) ) 2 ( i ) )
Energy 1 n ( i = 1 n ( x i 2 + y i 2 +   z i 2 ) 2   ( i ) )
Pitch 1 n ( i = 1 n ( tan 1 ( x i / ( y i 2 +   z i 2 ) )   180 π ) ( i ) )
Roll 1 n ( i = 1 n ( atan 2 ( y i ,   z i ) 180 π ) ( i ) )
Inclination 1 n ( i = 1 n (       tan 1 ( x i 2 +   y i 2 z i )   180 π ) ( i ) )
Table 3. The mean Gini values of the three most important features across three different ethograms within two accelerometer deployment locations.
Table 3. The mean Gini values of the three most important features across three different ethograms within two accelerometer deployment locations.
EthogramNeck-CollarEar-Tag
FeatureMGVFeatureMGV
1MVA208MVA307
SDx120SDx124
AVGZ101MINX74
2MVA218MVA298
SDx124SDx134
AVGZ96ENG78
3AVGz138MVA172
SMA97SDx57
MAXz59AVGz47
MGV = mean Gini value; MVA = movement variation; AVG = mean axis value, SD = standard deviation of axis; SMA = signal magnitude area; ENG = energy; MIN = minimum value of axis; MAX = maximum value of axis.
Table 4. Accuracy and kappa coefficient of machine learning (ML) predictions across three different ethograms within two accelerometer deployment modes. Bolded ML with asterisk symbol represents the highest prediction performance within each ethogram.
Table 4. Accuracy and kappa coefficient of machine learning (ML) predictions across three different ethograms within two accelerometer deployment modes. Bolded ML with asterisk symbol represents the highest prediction performance within each ethogram.
DeploymentEthogramMLAccuracy (%)Kappa
Neck-collar1DT64.50.52
RF *92.40.90
kNN84.50.79
SVM87.60.83
2DT85.30.77
RF *94.80.92
kNN92.80.89
SVM94.80.92
3DT90.80.76
RF *97.70.94
kNN94.20.85
SVM97.20.93
Ear-tag1DT68.80.58
RF *87.50.83
kNN70.70.61
SVM83.40.78
2DT83.50.75
RF *95.20.92
kNN88.10.81
SVM93.10.89
3DT90.30.75
RF *95.70.89
kNN91.20.77
SVM84.00.56
1 = licking vs. eating vs. standing vs. lying; 2 = licking vs. eating vs. inactive (standing + lying); 3 = licking vs. non-licking (eating + standing + lying); ML = machine learning; DT = decision trees; RF = random forest; kNN = k-nearest neighbour; SVM = support vector machine.
Table 5. Confusion matrix of the random forest algorithm in predicting four mutually-exclusive behaviours (ethogram 1) using testing datasets across two accelerometer deployment modes. Bold numbers represent correct prediction and italic numbers represent misclassification.
Table 5. Confusion matrix of the random forest algorithm in predicting four mutually-exclusive behaviours (ethogram 1) using testing datasets across two accelerometer deployment modes. Bold numbers represent correct prediction and italic numbers represent misclassification.
DeploymentPredicted BehaviourObserved Behaviour 1PPV (%)
LickingEatingStandingLying
Neck-collarLicking18382094.8
Eating217512490.7
Standing101541491.1
Lying011014492.9
Sensitivity (%)98.4 95.186.588.9
Ear-tagLicking166313190.7
Eating71738191.5
Standing421372979.7
Lying111511987.5
Sensitivity (%)93.396.779.279.3
1 = number of sample (data points) at 10 s epoch; PPV = positive predictive value.
Table 6. Confusion matrix of the random forest algorithm in predicting licking, eating, and inactive behaviours (ethogram 2) using testing datasets across two accelerometer deployment modes. Bold numbers represent correct prediction and italic numbers represent misclassification.
Table 6. Confusion matrix of the random forest algorithm in predicting licking, eating, and inactive behaviours (ethogram 2) using testing datasets across two accelerometer deployment modes. Bold numbers represent correct prediction and italic numbers represent misclassification.
DeploymentPredicted BehaviourObserved Behaviour 1PPV (%)
LickingEatingInactive
Neck-collarLicking18510393.4
Eating11691889.9
Inactive0531798.5
Sensitivity (%)99.591.993.8
Ear-tagLicking1655494.8
Eating1170795.5
Inactive12431295.1
Sensitivity (%)92.795.096.6
1 = number of sample (data points) at 10 s epoch; PPV = positive predictive value.
Table 7. Confusion matrix of the random forest algorithm in predicting licking and non-licking behaviours (ethogram 3) using testing datasets across two accelerometer deployment modes. Bold numbers represent correct prediction and italic number represents misclassification.
Table 7. Confusion matrix of the random forest algorithm in predicting licking and non-licking behaviours (ethogram 3) using testing datasets across two accelerometer deployment modes. Bold numbers represent correct prediction and italic number represents misclassification.
DeploymentPredicted BehaviourObserved Behaviour 1PPV (%)
LickingNon-Licking
Neck-collarLicking175796.2
Non-licking951598.3
Sensitivity (%)95.198.7
Ear-tagLicking1601193.6
Non-licking1849196.5
Sensitivity (%)89.997.8
1 = number of sample (data points) at 10 s epoch; PPV = positive predictive value.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Simanungkalit, G.; Barwick, J.; Cowley, F.; Dobos, R.; Hegarty, R. A Pilot Study Using Accelerometers to Characterise the Licking Behaviour of Penned Cattle at a Mineral Block Supplement. Animals 2021, 11, 1153. https://doi.org/10.3390/ani11041153

AMA Style

Simanungkalit G, Barwick J, Cowley F, Dobos R, Hegarty R. A Pilot Study Using Accelerometers to Characterise the Licking Behaviour of Penned Cattle at a Mineral Block Supplement. Animals. 2021; 11(4):1153. https://doi.org/10.3390/ani11041153

Chicago/Turabian Style

Simanungkalit, Gamaliel, Jamie Barwick, Frances Cowley, Robin Dobos, and Roger Hegarty. 2021. "A Pilot Study Using Accelerometers to Characterise the Licking Behaviour of Penned Cattle at a Mineral Block Supplement" Animals 11, no. 4: 1153. https://doi.org/10.3390/ani11041153

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