| Literature DB >> 30347653 |
Nicola Mansbridge1, Jurgen Mitsch2,3, Nicola Bollard4, Keith Ellis5, Giuliana G Miguel-Pacheco6, Tania Dottorini7, Jasmeet Kaler8.
Abstract
Grazing and ruminating are the most important behaviours for ruminants, as they spend most of their daily time budget performing these. Continuous surveillance of eating behaviour is an important means for monitoring ruminant health, productivity and welfare. However, surveillance performed by human operators is prone to human variance, time-consuming and costly, especially on animals kept at pasture or free-ranging. The use of sensors to automatically acquire data, and software to classify and identify behaviours, offers significant potential in addressing such issues. In this work, data collected from sheep by means of an accelerometer/gyroscope sensor attached to the ear and collar, sampled at 16 Hz, were used to develop classifiers for grazing and ruminating behaviour using various machine learning algorithms: random forest (RF), support vector machine (SVM), k nearest neighbour (kNN) and adaptive boosting (Adaboost). Multiple features extracted from the signals were ranked on their importance for classification. Several performance indicators were considered when comparing classifiers as a function of algorithm used, sensor localisation and number of used features. Random forest yielded the highest overall accuracies: 92% for collar and 91% for ear. Gyroscope-based features were shown to have the greatest relative importance for eating behaviours. The optimum number of feature characteristics to be incorporated into the model was 39, from both ear and collar data. The findings suggest that one can successfully classify eating behaviours in sheep with very high accuracy; this could be used to develop a device for automatic monitoring of feed intake in the sheep sector to monitor health and welfare.Entities:
Keywords: accelerometer and gyroscope; classification algorithm; grazing; machine learning; precision livestock monitoring; rumination behaviour; sensor; sheep behaviour
Mesh:
Year: 2018 PMID: 30347653 PMCID: PMC6210268 DOI: 10.3390/s18103532
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Sensor orientations for (a) ear and (b) collar mount configurations.
Ethogram defining eating behaviours used for manual classification of behaviours from video recordings.
| Behaviour | Definition |
|---|---|
| Grazing | Standing or walking with head down, biting, chewing grass or searching for food patches |
| Ruminating | At rest and ruminating or in the process of regurgitating a bolus |
| Non-eating behaviour | No jaw movement, sheep could be walking standing or lying |
Percentage of non-mixed and mixed windows.
| Type of Sample | Ratio [%] |
|---|---|
| Non-Mixed | 95.55 |
| Mixed | 4.45 |
Percentage of samples that are non-mixed or mixed for the data in this study (16 Hz and 7 s windows).
Figure 2Example graph showing accelerometer data extracted from sensors mounted on one sheep in two locations, ear (a) and collar (b), over 30 min showing grazing, non-eating and ruminating behaviour over time.
Feature rankings and predictive values for collar and ear data using ReliefF. Colours indicate the feature rank from high (blue) to low (red). A: accelerometer, AD: accelerometer derivative (rate of change), G: gyroscope, GD: gyroscope derivative (rate of change).
| Type | Name | Rank Ear | Rank Collar |
|---|---|---|---|
| A | Dominant Frequency | 1 | 1 |
| AD | Dominant Frequency | 2 | 28 |
| A | Zero Crossings | 3 | 3 |
| GD | Dominant Frequency | 4 | 22 |
| G | Maximum | 5 | 13 |
| G | Zero Crossings | 6 | 11 |
| G | Mean | 7 | 6 |
| G | Signal Area | 8 | 5 |
| GD | Signal Area | 9 | 7 |
| GD | Mean | 10 | 8 |
| G | Spectral Entropy | 11 | 4 |
| GD | Interquartile Range | 12 | 14 |
| G | Dominant Frequency | 13 | 12 |
| GD | Standard Deviation | 14 | 15 |
| AD | Zero Crossings | 15 | 19 |
| A | Minimum | 16 | 2 |
| G | Standard Deviation | 17 | 21 |
| GD | Maximum | 18 | 20 |
| GD | Zero Crossings | 19 | 26 |
| AD | Signal Area | 20 | 9 |
| AD | Mean | 21 | 10 |
| G | Interquartile Range | 22 | 27 |
| GD | Spectral Area | 23 | 32 |
| AD | Interquartile Range | 24 | 18 |
| AD | Spectral Entropy | 25 | 25 |
| A | Spectral Entropy | 26 | 23 |
| G | Spectral Area | 27 | 40 |
| AD | Standard Deviation | 28 | 16 |
| AD | Maximum | 29 | 24 |
| GD | Spectral Entropy | 30 | 31 |
| GD | Kurtosis | 31 | 33 |
| G | Minimum | 32 | 29 |
| A | Interquartile Range | 33 | 17 |
| A | Kurtosis | 34 | 38 |
| A | Standard Deviation | 35 | 30 |
| A | Maximum | 36 | 34 |
| AD | Kurtosis | 37 | 39 |
| A | Mean | 38 | 35 |
| A | Signal Area | 39 | 36 |
| G | Kurtosis | 40 | 37 |
| AD | Spectral Area | 41 | 41 |
| GD | Minimum | 42 | 43 |
| A | Spectral Area | 43 | 42 |
| AD | Minimum | 44 | 44 |
Maximum overall accuracy values of different learner types trained algorithm using all 44 features for each ear and collar data.
| Algorithm | Ear | Collar | ||
|---|---|---|---|---|
| Number of Features | Overall Accuracy | Number of Features | Overall Accuracy | |
| Random Forest | 39 | 91% | 39 | 92% |
| Support Vector Machine | 4 | 67% | 2 | 73% |
| 22 | 79% | 18 | 87% | |
| AdaBoost | 39 | 81% | 35 | 85% |
Figure 3Comparison of overall accuracies for ear, over used number of features (AdaBoost, kNN, random forest and support vector machine).
Figure 4Comparison of overall accuracies for collar, over number of used features (AdaBoost, kNN, random forest and support vector machine).
Figure 5Overall accuracies for ear and collar data over number of features using Random Forest.
Confusion matrix using collar data and 39 features to assess the performance of classification of specific eating behavioural activities based on random forest.
| Prediction | |||
|---|---|---|---|
| Eating Behaviour | Grazing | Non-Eating Behaviour | Ruminating |
| Grazing | 30.06% | 1.65% | 0.53% |
| Non-eating behaviour | 0.68% | 39.16% | 1.55% |
| Ruminating | 0.42% | 2.96% | 22.98% |
Performance of the classification using collar data and 39 features of specific eating behavioural activities based on random forest.
| Precision | Recall | F-score | Specificity | |
|---|---|---|---|---|
| Grazing | 96% | 93% | 95% | 98% |
| Non-eating behaviour | 89% | 95% | 92% | 91% |
| Ruminating | 92% | 87% | 89% | 97% |
Confusion matrix using ear data and 39 features to assess the performance of classification of specific eating behavioural activities based on random forest.
| Prediction | |||
|---|---|---|---|
| Eating Behaviour | Grazing | Non-Eating Behaviour | Ruminating |
| Grazing | 27.3% | 2.3% | 0.3% |
| Non-eating behaviour | 2.6% | 43.0% | 2.1% |
| Ruminating | 0.4% | 3.3% | 18.7% |
Performance of the classification using ear data and 39 features of specific eating behavioural activities based on random forest.
| Precision | Recall | F-score | Specificity | |
|---|---|---|---|---|
| Grazing | 95% | 90% | 92% | 98% |
| Non-eating behaviour | 89% | 93% | 91% | 89% |
| Ruminating | 89% | 86% | 88% | 97% |