| Literature DB >> 30192834 |
Jun Wang1,2, Zhitao He2, Guoqiang Zheng3, Song Gao2, Kaixuan Zhao2.
Abstract
Behaviors are important indicators for assessing the health and well-being of dairy cows. The aim of this study is to develop and validate an ensemble classifier for automatically measuring and distinguishing several behavior patterns of dairy cows from accelerometer data and location data. The ensemble classifier consists of two parts, our new Multi-BP-AdaBoost algorithm and a data fusion method based on D-S evidence theory. We identify seven behavior patterns: feeding, lying, standing, lying down, standing up, normal walking, and active walking. Accuracy, sensitivity, and precision were used to validate classification performance. The Multi-BP-AdaBoost algorithm performed well when identifying lying (92% accuracy, 93% sensitivity, 82% precision), lying down (99%, 82%, 86%), standing up (99%, 74%, 85%), normal walking (97%, 92%, 86%), and active walking (99%, 94%, 89%). Its results were poor for feeding (80%, 52%, 55%) and standing (80%, 46%, 58%), which are difficult to differentiate using a leg-mounted sensor. Position data made it possible to differentiate feeding and standing. The D-S evidence fusion method for combining accelerometer data and location data in classification was used to fuse two pieces of basic behavior-related evidence into a single estimation model. With this addition, the sensitivity and precision of the two difficult behaviors increased by approximately 20 percentage points. In conclusion, the classification results indicate that the ensemble classifier effectively recognizes various behavior patterns in dairy cows. However, further work is needed to study the robustness of the feature and model by increasing the number of cows enrolled in the trial.Entities:
Mesh:
Year: 2018 PMID: 30192834 PMCID: PMC6128579 DOI: 10.1371/journal.pone.0203546
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1Coordinate system of the leg-tag.
Fig 2Plan and section of the studied area in the barn.
(a) Plan. (b) Section.
Descriptions of the predefined behaviors.
| Activity level | Behavior category | Definition |
|---|---|---|
| Inactive behavior | Feeding | The cow is at the feeding zone and searches for or masticates the feed. |
| Lying | The cow is in a cubicle in a lying down position. | |
| Standing | The cow stands entirely on its four legs. | |
| Active behavior | Lying down | The cow bents one foreleg, lowers its forequarters, then hindquarters, and settles down in a state of lying. |
| Standing up | The cow rises from a lying state to stand on all four feet. | |
| Normal walking | The cow changes its location in space either in forward or backward direction with a minimum of one stride within 1 s. | |
| Active walking | The cow changes its location in space in a forward direction with a minimum of two strides within 1 s. |
a The cow has little or no movement of legs.
b The cow has significant and continuous leg movements.
Composition of behavior observations.
| Behavior pattern | Number of observations | Distributions | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Original | >5 s | < 4 s | 4 s | 5 s | 6 s | 7 s | 8 s | > 8 s | |
| Feeding | 5239 | 3676 | 401 | 535 | 627 | 614 | 524 | 607 | 1931 |
| Lying | 7857 | 6398 | 353 | 417 | 689 | 732 | 748 | 636 | 4282 |
| Standing | 4355 | 3386 | 37 | 369 | 563 | 452 | 513 | 528 | 1893 |
| Lying down | 1172 | 449 | 2 | 207 | 514 | 327 | 103 | 15 | 4 |
| Standing up | 1322 | 378 | 8 | 173 | 763 | 304 | 58 | 14 | 2 |
| Normal walking | 4075 | 2870 | 267 | 476 | 462 | 739 | 642 | 628 | 861 |
| Active walking | 1901 | 873 | 167 | 372 | 489 | 517 | 321 | 26 | 9 |
| Total | 25921 | 18030 | 1235 | 2549 | 4107 | 3685 | 2909 | 2454 | 8982 |
a Original number of observations in the database
b Number of observations with the duration over 5 s in the database
Fig 3Grid plot of the area of the barn under study.
Basic probability assignment functions based on interval division.
| Evidence | BPAs | Interval division | |||
|---|---|---|---|---|---|
| Result of Multi-BP-AdaBoost algorithm | Feeding | 0.5 | 0.4 | 0.1 | |
| Standing | 0.4 | 0.5 | 0.1 | ||
| Position of cow | 0 < | 0.1 | |||
| 1.5 m < | 0.1 | ||||
| 1.5 m + | 0 | 0.9 | 0.1 |
a Perpendicular distance between cow's hind leg and headlocks
b Average length of a cow’s body excluding the head
c Maximum value of mean positioning errors of the cows under study
d Width of the experiment area in this study
Fig 4Flowchart of the ensemble classification method proposed in the study.
Confusion matrix achieved from the classification of dairy cow behaviors by the Multi-BP-AdaBoost algorithm (the number of correctly classified samples is expressed in boldface).
| Predicted behavior | Observed behavior | Total | ||||||
|---|---|---|---|---|---|---|---|---|
| Feeding | Lying | Standing | Lying down | Standing up | Normal walking | Active walking | ||
| Feeding | 157 | 517 | 2 | 0 | 76 | 0 | 1561 | |
| Lying | 60 | 38 | 1 | 1 | 15 | 2 | 2215 | |
| Standing | 559 | 295 | 0 | 1 | 44 | 1 | 1685 | |
| Lying down | 4 | 5 | 0 | 9 | 6 | 8 | 187 | |
| Standing up | 1 | 3 | 1 | 13 | 17 | 11 | 174 | |
| Normal walking | 38 | 1 | 13 | 7 | 2 | 16 | 1064 | |
| Active walking | 0 | 0 | 0 | 2 | 10 | 3 | 326 | |
| Total | 1471 | 2559 | 1354 | 180 | 151 | 1148 | 349 | 7212 |
a Total number of test samples used in the classification
b Total number of behaviors predicted by the Multi-BP-AdaBoost algorithm for each behavior pattern
Summary statistics (mean±S.D.) of the performance indicators of the Multi-BP-AdaBoost algorithm for all behavior categories.
| Behavior pattern | Algorithm performance indicators | ||
|---|---|---|---|
| Accuracy | Sensitivityb | Precisionc | |
| Feeding | 0.80±0.03 | 0.52±0.02 | 0.55±0.01 |
| Lying | 0.92±0.01 | 0.93±0.01 | 0.82±0.02 |
| Standing | 0.80±0.04 | 0.46±0.01 | 0.58±0.01 |
| Lying down | 0.99±0.02 | 0.82±0.01 | 0.86±0.01 |
| Standing up | 0.99±0.00 | 0.74±0.04 | 0.85±0.01 |
| Normal walking | 0.97±0.04 | 0.92±0.01 | 0.86±0.03 |
| Active walking | 0.99±0.02 | 0.94±0.01 | 0.89±0.02 |
a Proportion of predictions (positive or negative) that were correct
b Proportion of positive predictions that were correct
c Proportion of the positive cases that were predicted positive
Location performance of the algorithm based on RSSI similarity degree with each location sensor.
| Location sensor | Location performance indicators | ||
|---|---|---|---|
| Maximum value (m) | Mean value (m) | Minimum value (m) | |
| Leg tag1 | 1.37 | 1.04 | 0.83 |
| Leg tag2 | 1.24 | 1.16 | 0.87 |
| Leg tag3 | 1.26 | 1.15 | 0.92 |
| Leg tag4 | 1.31 | 1.13 | 0.72 |
| Leg tag5 | 1.41 | 1.30 | 1.09 |
| Reference location sensor | 0.96 | 0.85 | 0.52 |
Re-classification results for all the data samples that have been predicted as feeding or standing using D-S evidence theory (The number of correctly classified samples is denoted in boldface).
| Predicted behavior | Observed behavior | Totalb | |
|---|---|---|---|
| Feeding | Standing | ||
| Feeding | 435 | 1613 | |
| Standing | 347 | 1556 | |
| Uncertainty | 36 | 41 | 77 |
| Totala | 1561 | 1685 | 3246 |
a Total number of data samples used in the re-classification
b Total number of behaviors predicted by the data fusion method based on D-S evidence theory for feeding, standing and uncertainty
Summary statistics (mean±S.D.) of the performance indicators of the data fusion method for feeding and standing.
| Behavior pattern | Algorithm performance indicators | ||
|---|---|---|---|
| Accuracy | Sensitivity | Precision | |
| Feeding | 0.75±0.03 | 0.73±0.03 | 0.75±0.04 |
| Standing | 0.75±0.04 | 0.78±0.04 | 0.72±0.03 |