| Literature DB >> 32218931 |
Jasmeet Kaler1, Jurgen Mitsch2, Jorge A Vázquez-Diosdado1, Nicola Bollard1, Tania Dottorini1, Keith A Ellis3.
Abstract
Lameness in sheep is the biggest cause of concern regarding poor health and welfare among sheep-producing countries. Best practice for lameness relies on rapid treatment, yet there are no objective measures of lameness detection. Accelerometers and gyroscopes have been widely used in human activity studies and their use is becoming increasingly common in livestock. In this study, we used 23 datasets (10 non-lame and 13 lame sheep) from an accelerometer- and gyroscope-based ear sensor with a sampling frequency of 16 Hz to develop and compare algorithms that can differentiate lameness within three different activities (walking, standing and lying). We show for the first time that features extracted from accelerometer and gyroscope signals can differentiate between lame and non-lame sheep while standing, walking and lying. The random forest algorithm performed best for classifying lameness with an accuracy of 84.91% within lying, 81.15% within standing and 76.83% within walking and overall correctly classified over 80% sheep within activities. Both accelerometer- and gyroscope-based features ranked among the top 10 features for classification. Our results suggest that novel behavioural differences between lame and non-lame sheep across all three activities could be used to develop an automated system for lameness detection.Entities:
Keywords: behaviour; lameness; machine learning; precision livestock farming; sensor; signal processing
Year: 2020 PMID: 32218931 PMCID: PMC7029909 DOI: 10.1098/rsos.190824
Source DB: PubMed Journal: R Soc Open Sci ISSN: 2054-5703 Impact factor: 2.963
Figure 1.Two-phase classification approach.
Feature characteristics computed using the change in the magnitude of the accelerometer and the magnitude of the gyroscope for each individual window. Here, f represents the signal.
| features | description/formula |
|---|---|
| time-domain features | |
| standard statistical features | mean, standard deviation, minimum, maximum, skewness, kurtosis and interquantile range |
| zero crossings | number of zero crossings in a window after subtracting the window mean value |
| signal area | |
| frequency-domain features | |
| spectral entropy | |
| dominant frequency | frequency at which the Fourier-transformed signal has its highest power |
| spectral area | |
| harmonic frequency (2nd and 3rd) | frequencies at which the signal has its second and third highest power values |
| harmonic ratio | ratio of the sum of the even amplitudes ( |
Overview of the number of samples per behaviour, number of samples and ratios for non-lame and lame sheep in each of the behaviour classes.
| WSL | lameness | number of samples | sample ratio within behaviour (in %) |
|---|---|---|---|
| walking | non-lame | 2974 | 46.88 |
| lame | 3370 | 53.12 | |
| standing | non-lame | 3822 | 51.56 |
| lame | 3591 | 48.44 | |
| lying | non-lame | 2271 | 35.78 |
| lame | 4076 | 64.22 |
Figure 2.Accelerometer magnitude difference (in g units) for non-lame (a) and lame (b) for the three different behaviours: walking (i), standing (ii) and lying (iii). The plot was generated using a 7 s window.
Figure 3.Gyroscope magnitude difference (in o/s units) for (a) non-lame and (b) lame for the three different behaviours: (i) walking, (ii) standing and (iii) lying. The plot is obtained for a 7 s window.
Figure 4.Comparison of the overall accuracy performance metric for lameness classification in (a) walking, (b) standing and (c) lying using the different learning algorithms.
Figure 5.Performance metrics (precision, recall, F-score and specificity) for lameness classification in (a) walking, (b) standing and (c) lying.
Top 10 ranked features using the ReliefF algorithm for walking, standing and lying. Light blue and dark blue colours represent acceleration magnitude difference-based features with frequency domain and time domain, respectively. Light and dark green colours represent gyroscope magnitude difference-based features with frequency domain and time domain, respectively.
Figure 6.σ-differences for lying, standing and walking which represent the level of separation between the number of times a sheep was predicted as lame vs the number of times that it was predicted as non-lame. The black line indicates a σ-difference of 0.