| Literature DB >> 36015721 |
Kim Margarette Corpuz Nogoy1,2, Sun-Il Chon1, Ji-Hwan Park1, Saraswathi Sivamani1, Dong-Hoon Lee3, Seong Ho Choi2.
Abstract
Cattle are less active than humans. Hence, it was hypothesized in this study that transmitting acceleration signals at a 1 min sampling interval to reduce storage load has the potential to improve the performance of motion sensors without affecting the precision of behavior classification. The behavior classification performance in terms of precision, sensitivity, and the F1-score of the 1 min serial datasets segmented in 3, 4, and 5 min window sizes based on nine algorithms were determined. The collar-fitted triaxial accelerometer sensor was attached on the right side of the neck of the two fattening Korean steers (age: 20 months) and the steers were observed for 6 h on day one, 10 h on day two, and 7 h on day three. The acceleration signals and visual observations were time synchronized and analyzed based on the objectives. The resting behavior was most correctly classified using the combination of a 4 min window size and the long short-term memory (LSTM) algorithm which resulted in 89% high precision, 81% high sensitivity, and 85% high F1-score. High classification performance (79% precision, 88% sensitivity, and 83% F1-score) was also obtained in classifying the eating behavior using the same classification method (4 min window size and an LSTM algorithm). The most poorly classified behavior was the active behavior. This study showed that the collar-fitted triaxial sensor measuring 1 min serial signals could be used as a tool for detecting the resting and eating behaviors of cattle in high precision by segmenting the acceleration signals in a 4 min window size and by using the LSTM classification algorithm.Entities:
Keywords: cattle behavior; machine learning; sampling interval; sampling rate; triaxial accelerometer
Mesh:
Year: 2022 PMID: 36015721 PMCID: PMC9415065 DOI: 10.3390/s22165961
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Figure 1The process of evaluating the collar-fitted accelerometer sensor begins from the experiment in the field until the analysis of data and determination of the performance score of the classification algorithms used to identify behaviors of the cattle.
Figure 2Orientation of the sensor in the Korean steer. The left figure showed the directions of the detectable accelerations on top view. The figure on the right shows the directions of the detectable accelerations when the sensor is positioned on the right neck side of the cattle. The x-axis measured the vertical movements of the head of the cattle, the y-axis measured the horizontal movements of the head of the cattle, and the z-axis measured the lateral, sideways, or rotational movements of the head of the cattle.
Classification and description of the different behavior categories for actual observation.
| Behavior | Definition |
|---|---|
| Active | Walking: The cow is moving from one location to another and walking straight forward with a normal gait. Standing: The cow is in an upright position on all four legs with its head in an upright position and without swinging its head from side to side, not walking, eating, or ruminating |
| Eating | Ruminating: The cow can be standing or lying and masticating regurgitated feed, swallowing masticated feed, or regurgitating feed with its head in an upright position. Feeding: The cow places its head above the feeding table and searches, masticates, or sorts the feed (silage), and can also be drinking |
| Resting | Sleeping: The cow is resting on the ground (not in an upright position) and not feeding or ruminating, settling down in a lying position and closing its eyes. Lying: The cow is resting on the ground (not in an upright position) and not feeding or ruminating but can still be moving its head |
Figure 3The three major cattle behaviors studied were (A) active behavior (standing and walking motions), (B) eating behavior (feeding, ruminating, and drinking motions), and (C) resting behavior (sleeping and lying motions). Below each behavior were the graphs of the vectorial sum acceleration per minute of the three major cattle behaviors.
The least-square means of the vectorial sum of the acceleration (VSA) for active, eating, and resting behaviors of the Korean steers.
| Items | Active | Eating | Resting |
|---|---|---|---|
| Minimum | 0.40 | 0.40 | 0.40 |
| Maximum | 20.90 | 25.70 | 4.00 |
| Mean | 3.76 b | 5.16 a | 1.02 c |
| SEM | 0.10 | 0.13 | 0.15 |
a–c Means within the same row with different superscripts are statistically different (p < 0.05); SEM, standard error of means.
Classification performance of the collar-fitted accelerometer sensor based on nine algorithms framed at different minute window sizes for specific the active, eating, and resting behaviors of the cattle.
| Behavior | Classification Algorithm | Precision | Sensitivity | F1 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 3 m | 4 m | 5 m | 3 m | 4 m | 5 m | 3 m | 4 m | 5 m | ||
| Active | ANN |
|
| 63 | 62 | 64 | 64 | 60 | 62 | 62 |
| DT | 54 | 55 | 56 | 55 | 56 | 56 | 57 | 55 | 56 | |
| GB | 59 | 62 | 64 | 59 | 62 | 64 |
|
|
| |
| KNN | 56 | 59 | 61 | 66 | 65 | 67 | 60 | 61 | 64 | |
| LR | 50 | 51 | 51 |
|
|
| 59 | 60 | 60 | |
| LSTM | 52 | 61 |
| 64 | 49 | 57 | 58 | 52 | 61 | |
| NB | 54 | 56 | 58 | 41 | 42 | 43 | 46 | 47 | 48 | |
| RF | 57 | 60 | 63 | 64 | 66 | 71 | 60 | 63 | 67 | |
| SVM | 57 | 60 | 62 | 61 | 66 | 68 | 54 | 58 | 60 | |
| Eating | ANN |
| 64 | 61 | 43 | 45 | 45 | 46 | 49 | 48 |
| DT | 43 | 44 | 44 | 42 | 44 | 47 | 43 | 44 | 46 | |
| GB | 52 | 57 | 60 | 52 | 57 | 60 | 41 | 43 | 43 | |
| KNN | 48 | 52 | 56 | 40 | 44 | 46 | 42 | 47 | 50 | |
| LR | 28 | 28 | 27 | 19 | 19 | 18 | 22 | 22 | 22 | |
| LSTM | 58 |
|
|
|
|
|
|
|
| |
| NB | 44 | 49 | 52 | 19 | 24 | 27 | 25 | 32 | 35 | |
| RF | 49 | 53 | 63 | 39 | 41 | 44 | 42 | 45 | 49 | |
| SVM | 56 | 60 | 63 | 47 | 47 | 47 | 46 | 48 | 49 | |
| Resting | ANN | 58 | 61 | 62 | 66 | 67 | 68 | 61 | 62 | 64 |
| DT | 50 | 53 | 56 | 49 | 51 | 52 | 49 | 52 | 54 | |
| GB | 60 | 62 | 65 | 60 | 62 | 65 |
| 65 | 66 | |
| KNN | 60 | 59 | 61 | 47 | 54 | 57 | 51 | 55 | 58 | |
| LR | 30 | 32 | 33 | 41 | 41 | 42 | 35 | 36 | 37 | |
| LSTM |
|
|
| 36 |
| 86 | 48 |
|
| |
| NB | 44 | 46 | 47 |
|
|
| 58 | 59 | 61 | |
| RF | 57 | 61 | 64 | 56 | 60 | 65 | 56 | 60 | 64 | |
| SVM | 30 | 32 | 32 | 41 | 42 | 43 | 35 | 36 | 37 | |
The highest performing scores as determined by the precision, sensitivity, and F1 were shown in bold format. In addition, data presented in bold and underlined format indicate the best performance scores per specific behavior. ANN, artificial neural network; DT, decision tree; GB, gradient boosting; KNN, k-nearest neighbor; LR, logistic regression; LSTM, long short-term memory; NB, naïve Bayesian; RF, random forest; SVM, support vector machine.
Related works about classification performance using triaxial accelerometer in detecting cattle behaviors. Behavior.
| Algorithm | Precision | Sensitivity | F1-Score | References | |
|---|---|---|---|---|---|
| Active (none) | - | - | - | - | 2022 [ |
| Eating (chewing) | XGB | 82.00 | 43.00 | 56.00 | |
| Resting (none) | - | - | - | - | |
| Active (steady standing) | RF | - | 58.00 | - | 2022 [ |
| Eating (ruminating) | - | 89.30 | - | ||
| Resting (laying) | - | 61.10 | - | ||
| Active (standing) | SCV | - | - | 87.40 | 2018 [ |
| Eating (ruminating) | SCV | - | - | 91.30 | |
| Resting (none) | - | - | - | - | |
| Active (walking) | SVM | 65.00 | 76.00 | 70.00 | 2016 [ |
| Eating (ruminating) | RFE | 84.00 | 88.00 | 86.00 | |
| Resting (as is) | RFE | 83.00 | 88.00 | 85.00 | |
| Active (standing) | DT | 55.00 | 88.00 | - | 2015 [ |
| Eating (feeding) | 93.10 | 98.78 | |||
| Resting (lying) | 98.63 | 77.42 | |||
| Active (standing and walking) | SVM | 70.00 | 74.66 | - | 2009 [ |
| Eating (ruminating and feeding) | 83.50 | 75.00 | - | ||
| Resting (lying) | 83.00 | 80.00 | - |
XGB, extreme gradient boosting; RF, random forest; SCV, stratified cross-validation; SVM, support vector machine; RFE, random forest ensemble; DT, decision tree.
The least square means of the classification performance of collar-fitted triaxial accelerometer sensor for the active, eating, and resting behaviors of cattle at different window sizes.
| Behavior | Precision | Sensitivity | F1 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 3 m | 4 m | 5 m | 3 m | 4 m | 5 m | 3 m | 4 m | 5 m | |
| Active | 56 b | 58 a | 60 a | 61 | 63 | 65 | 57 bc | 59 ab | 60 a |
| Eating | 48 b | 51 ab | 53 a | 36 ab | 38 a | 40 a | 39 | 42 | 43 |
| Resting | 49 ab | 51 ab | 52 a | 56 | 59 | 60 | 51 ab | 53 ab | 55 a |
Means with different superscripts a–c within a row per performance group differ (p < 0.05).
Classification performance of collar-fitted accelerometer sensor based on nine algorithms framed at different minute window sizes for specific behavior of cattle.
| Classification Algorithm | Precision | Sensitivity | F1-Score | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 3 m | 4 m | 5 m | 3 m | 4 m | 5 m | 3 m | 4 m | 5 m | |
| ANN | 61 | 63 | 63 | 61 | 62 | 63 | 59 | 60 | 61 |
| DT | 52 | 53 | 54 | 51 | 53 | 54 | 51 | 53 | 54 |
| GB | 59 | 62 | 64 | 59 | 62 | 64 | 60 | 62 | 64 |
| KNN | 56 | 58 | 60 | 57 | 59 | 61 | 55 | 57 | 60 |
| LR | 42 | 42 | 42 | 54 | 55 | 55 | 45 | 46 | 46 |
|
| 59 |
|
| 31 |
| 62 | 40 |
|
|
| NB | 51 | 53 | 55 | 47 | 48 | 50 | 44 | 46 | 48 |
| RF | 56 | 59 | 64 | 57 | 60 | 64 | 56 | 59 | 63 |
| SVM | 50 | 53 | 54 | 57 | 59 | 60 | 50 | 52 | 54 |
The highest performing scores as determined by the precision, sensitivity, and F1-score were shown in bold format. In addition, data presented in bold and underlined format indicate the best performance scores per specific behavior. ANN, artificial neural network; DT, decision tree; GB, gradient boosting; KNN, k-nearest neighbor; LR, logistic regression; LSTM, long short-term memory; NB, naïve Bayesian; RF, random forest; SVM, support vector machine.