| Literature DB >> 35875422 |
Ty B Schmidt1, Jessica M Lancaster1, Eric Psota2, Benny E Mote1, Lindsey E Hulbert3, Aaron Holliday1, Ruth Woiwode1, Lance C Pérez4.
Abstract
Animal behavior is indicative of health status and changes in behavior can indicate health issues (i.e., illness, stress, or injury). Currently, human observation (HO) is the only method for detecting behavior changes that may indicate problems in group-housed pigs. While HO is effective, limitations exist. Limitations include HO being time consuming, HO obfuscates natural behaviors, and it is not possible to maintain continuous HO. To address these limitations, a computer vision platform (NUtrack) was developed to identify (ID) and continuously monitor specific behaviors of group-housed pigs on an individual basis. The objectives of this study were to evaluate the capabilities of the NUtrack system and evaluate changes in behavior patterns over time of group-housed nursery pigs. The NUtrack system was installed above four nursery pens to monitor the behavior of 28 newly weaned pigs during a 42-d nursery period. Pigs were stratified by sex, litter, and randomly assigned to one of two pens (14 pigs/pen) for the first 22 d. On day 23, pigs were split into four pens (7 pigs/pen). To evaluate the NUtrack system's capabilities, 800 video frames containing 11,200 individual observations were randomly selected across the nursery period. Each frame was visually evaluated to verify the NUtrack system's accuracy for ID and classification of behavior. The NUtrack system achieved an overall accuracy for ID of 95.6%. This accuracy for ID was 93.5% during the first 22 d and increased (P < 0.001) to 98.2% for the final 20 d. Of the ID errors, 72.2% were due to mislabeled ID and 27.8% were due to loss of ID. The NUtrack system classified lying, standing, walking, at the feeder (ATF), and at the waterer (ATW) behaviors accurately at a rate of 98.7%, 89.7%, 88.5%, 95.6%, and 79.9%, respectively. Behavior data indicated that the time budget for lying, standing, and walking in nursery pigs was 77.7% ± 1.6%, 8.5% ± 1.1%, and 2.9% ± 0.4%, respectively. In addition, behavior data indicated that nursery pigs spent 9.9% ± 1.7% and 1.0% ± 0.3% time ATF and ATW, respectively. Results suggest that the NUtrack system can detect, identify, maintain ID, and classify specific behavior of group-housed nursery pigs for the duration of the 42-d nursery period. Overall, results suggest that, with continued research, the NUtrack system may provide a viable real-time precision livestock tool with the ability to assist producers in monitoring behaviors and potential changes in the behavior of group-housed pigs.Entities:
Keywords: Kinect v2; animal behavior; individual identification; multiple-object tracking; precision livestock technology
Year: 2022 PMID: 35875422 PMCID: PMC9298813 DOI: 10.1093/tas/txac082
Source DB: PubMed Journal: Transl Anim Sci ISSN: 2573-2102
Figure 3.Still images of video collected and processed by NUtrack system: a) annotated area for the location of the waterer (blue) and feeder (green), b) example of the identification error classified as Lost Label; NUtrack label for blue 1 not correctly associated with pig, c) example of identification error classified as Label Swap; NUtrack label between red 22 ear tag and green 333 ear tag have been swapped, and d) example of classification of activity error, NUtrack activity classification label for yellow 333 ear tag and green 22 ear tag displayed as walking when visual evaluation determined activity classified as eating.
Diets fed to 28 newly weaned nursery pigs during a 42-d nursery period
| Ingredient | Starter | Nursery | Nursery | Nursery |
|---|---|---|---|---|
| Corn | 43.0 | 43.6 | 60.0 | 57.0 |
| Soybean Meal | 14.7 | 32.0 | 33.8 | 34.8 |
| Dried Whey | 22.5 | 15.0 | ||
| Tallow | ||||
| Fish Meal | 8.00 | 4.0 | ||
| Animal Plasma | 6.00 | |||
| Corn Oil | 3.00 | 3.0 | 3.00 | 3.0 |
| Di-calcium Phosphate | 0.40 | 1.0 | 1.70 | 1.7 |
| Limestone | 0.25 | 0.35 | 0.60 | 0.30 |
| Salt | 0.30 | 0.30 | 0.30 | 0.30 |
| Vitamin Premix3 | 0.25 | 0.25 | 0.25 | 0.15 |
| Swine TM Premix4 | 0.15 | 0.15 | 0.15 | 0.15 |
| Mecadox | 1.0 | |||
| Zinc Oxide | 0.4 | 0.3 | ||
| DL-Methionine | 0.05 | 0.025 | 0.025 | 0.025 |
| L-lysine HCL | 0.040 | 0.040 | ||
| Denegard | 0.180 | |||
| Aureomycin 50 | 0.400 | |||
| Phytase | ||||
| Composition, % | ||||
| Net Energy | 2,631 | 2,534 | 2,515.0 | 2,531.0 |
| Crude Protein | 16.69 | 20.02 | 17.92 | 17.95 |
| Lysine | 1.33 | 1.21 | 1.03 | 1.03 |
All ingredients reported on as a percentage as fed basis.
Medicated Nursery 2 diet included Denegard and Auromycin 50.
Vitamin Premix ingredients: Vitamins A, D, E, K, Niacin, Panothenic Acid, Riboflavin, Vitamin B12.
Swine TM Premix ingredients: Copper, Iodine, Iron, Manganese, Selenium, Zinc.
Figure 1.Schematic of nursery pens and placement of NUtrack system within the research nursery room within the Animal Science Complex at the University of Nebraska – Lincoln.
Figure 2.Still images of from video frame collected and processed by NUtrack system with overlying labels for individual identifications1 (ear tag color/number), classification of activity,2 and polygonal shaped zone defined for feeder (transparent green rectangle) and water (tranparent blue rectangle). Left image captured from pen 1 during the first week of the nursery phase and the right image captured includes both pens 1 and 2 during the fourth week of the nursery phase.
Ethogram for classification of behaviors utilized by trained evaluators to determine the accuracy of the NUtrack system
| Activity | Description of behavior for visual classification |
|---|---|
| Lying | ♦ Anterior and posterior aspects of body in contact with floor |
| Standing | ♦ No part of the body in contact with flooring |
| Walking | ♦ Standing as defined above and visual movements between previous and post selected frame |
| At the Feeder | ♦ Standing as defined above with head located in the annotated area of the feeder and aligned towards the feeder |
| At the Waterer | ♦ Standing as defined above with head located in the annotated area of the waterer and aligned towards the nipple/cup |
Identification errors (lost label and label swapped) associated with the NUtrack systems compared to visual evaluation of 10,655 individual observations from 800 randomly selected frames of 28 nursery pigs during a 42-d of the nursery period
| Days 1–22 | Days 23–42 |
| Overall | |
|---|---|---|---|---|
| Individual Observations | 5,171 | 5,484 | 10,655 | |
| Detected1 | 5,055 | 5,470 | 10,525 | |
| Lost Label2 | 116 | 14 | ≤ 0.001 | 130 |
| % Detected | 97.8 | 99.7 | 98.8 | |
| Observations for ID | 5,055 | 5,470 | 10,525 | |
| Correct ID3 | 4800 | 5,388 | 10,188 | |
| Label Swap4 | 255 | 82 | ≤ 0.001 | 337 |
| % Correct ID | 94.6 | 98.5 | 96.8 |
Number of observations in which the NUtrack system correctly detected and labeled a pig as determined by trained evaluators.
Number of observations in which the NUtrack system did not correctly detect and label a pig as determined by trained evaluators.
Number of observations where the NUtrack system correctly detected a pig and correctly determined the individual identification as determined by trained evaluators.
Number of observations where the NUtrack system correctly detected a pig but did not correctly determine the correct individual identification as determined by trained evaluators.
Overall association of detection/identification errors (lost label and label swap) with the classified behaviors of individual pig as classified by the NUtrack system when compared to visual annotation of 10,655 randomly observations from 800 selected frames of 28 nursery pigs during a 42-d of the nursery period
| Error × Behavior | Overall | |
|---|---|---|
|
| % | |
| Lost Lable1 | ||
| Lying | 100a | 76.9 |
| Standing | 14b | 10.8 |
| Walking | 0c | 0.0 |
| ATF2 | 13b | 10.0 |
| ATW3 | 3b | 2.3 |
| | ≤ 0.001 | |
| Label Swap4 | ||
| Lying | 277a | 74.7 |
| Standing | 38b | 10.2 |
| Walking | 9c | 2.4 |
| ATF | 11c | 3.0 |
| ATW | 2c | 0.5 |
| | ≤ 0.001 | |
Denoted lost label in which the NUtrack system did not correctly detect and label a pig as determined by trained evaluators.
Pigs were classified as at the feeder (ATF) when the head of an individual pig was determined to be within the annotated location of the feeder (Figure 3a).
Pigs were classified as at the waterer (ATW) when the head of an individual pig was determined to be within the annotated location of the waterer (Figure 3a).
Denotes label swap error in which the NUtrack system correctly detected a pig but did not correctly determine the correct individual identification as determined by trained evaluators..
Denote differences (P < 0.05) within columns between behavior classifications as classified by visual evaluation.
Change over time in rate of detection/identification errors (Lost Label and Label Swap) with the classified behaviors of as classified by the NUtrack system when compared to visual annotation of 10,655 randomly observations from 800 selected frames of 28 nursery pigs during a 42 d of the nursery period
| Error × Behavior | Days 1–22 | Days 23–42 |
|
|---|---|---|---|
|
|
| ||
| Lost Label1 | |||
| Lying | 92a | 8 | ≤ 0.001 |
| Standing | 9b | 5 | 0.36 |
| Walking | 0c | 0 | − |
| ATF2 | 12b | 1 | 0.03 |
| ATW3 | 3b,c | 0 | 0.52 |
| | ≤ 0.03 | ≥0.56 | |
| Label Swap4 | |||
| Lying | 212a | 65a | ≤ 0.001 |
| Standing | 24b | 14b | 0.04 |
| Walking | 9b | 0c | ≤ 0.001 |
| ATF | 8b | 3b,c | 0.03 |
| ATW | 2c | 0c | 0.05 |
| | ≤ 0.05 | ≤ 0.04 | |
Denoted lost label in which the NUtrack system did not correctly detect and label a pig as determined by trained evaluators.
Pigs were classified as at the feeder (ATF) when head of an individual pig was determined to be within the annotated location of the feeder (Figure 3a).
Pigs were classified as at the waterer (ATW) when head of an individual pig was determined to be within the annotated location of the waterer (Figure 3a).
Denotes label swap error in which the NUtrack system correctly detected a pig but did not correctly determine the correct individual identification as determined by trained evaluators.
Denote differences (P < 0.05) within columns between behavior classifications
Overall classification accuracy of the NUtrack system for determining behaviors of 28 group-housed nursery pigs during a 42-d nursery period.
| Total | Days 1–22 | Days 23–42 |
| |
|---|---|---|---|---|
| Total Observations | 10,682 | 5,263 | 5,419 | |
| Lying (n) | 6,893 | 3,157 | 3,736 | 0.63 |
| Standing (n) | 1,279 | 848 | 431 | 0.03 |
| Walking (n) | 937 | 606 | 331 | 0.02 |
| ATF (n) | 1,414 | 582 | 832 | 0.18 |
| ATW (n) | 159 | 70 | 89 | 0.56 |
| Total Observed Errors | 424 | 300 | 124 | <0.001 |
| Lying (n) | 87b | 76b | 11bc | <0.001 |
| Standing (n) | 132a | 101a | 31b | <0.001 |
| Walking (n) | 108a | 104a | 4c | <0.001 |
| ATF (n) | 65b | 7c | 58a | <0.001 |
| ATW (n) | 32c | 12c | 20b | 0.46 |
| | <0.001 | <0.001 | <0.001 | |
| Overall % Correct | 96.3 | 94.6 | 98.0 | |
| Lying (%) | 98.7a | 97.7 | 99.7 | |
| Standing (%) | 89.7b | 88.8 | 91.4 | |
| Walking (%) | 88.5b | 83.2 | 98.2 | |
| ATF1 (%) | 95.4a | 99.5 | 92.5 | |
| ATW2 (%) | 79.9c | 84.3 | 76.4 | |
| | <0.001 |
Pigs were classified as at the feeder (ATF) when head of an individual pig was determined to be within the annotated location of the feeder (Figure 3a).
Pigs were classified as at the waterer (ATW) when the head of an individual pig was determined to be within the annotated location of the waterer (Figure 3a).
Denotes differences (P < 0.05) within columns between behavior classifications.
Breakdown of NUtrack errors for classification of behavior compared to the behavior determined by the trained evaluators of 28 newly weaned group-housed nursery pigs over 42-d period
| NU | Days 1–42 | Days 1–22 | Days 23–42 |
|
|---|---|---|---|---|
|
|
|
| ||
| Lying Errors | 87 | 76 | 11 | ≤ 0.001 |
| Lying/ Standing | 12b | 10c | 2 | 0.02 |
| Lying/ Walk | 1b | 1c | 0 | 0.52 |
| Lying/ ATF3 | 48a | 42a | 6 | ≤ 0.001 |
| Lying/ ATW4 | 26a | 23b | 3 | 0.40 |
| | ≤ 0.001 | ≤ 0.001 | ≥ 0.57 | |
| Standing Errors | 132 | 101 | 31 | ≤ 0.001 |
| Standing/ Lying | 10b | 1c | 9 | 0.04 |
| Standing/ Walk | 6b | 2c | 4 | 0.16 |
| Standing/ ATF | 86a | 76a | 10 | ≤ 0.001 |
| Standing/ ATW | 30b | 22b | 8 | 0.01 |
| | ≤ 0.001 | ≤ 0.001 | ≥ 0.23 | |
| Walking Errors | 108 | 104 | 4 | ≤ 0.001 |
| Walk/ Lying | 3c | 2c | 1 | 0.56 |
| Walk/ Standing | 5c | 5c | 0 | 0.58 |
| Walk/ ATF | 71a | 68a | 3 | ≤ 0.001 |
| Walk/ ATW | 29b | 29b | 0 | 0.006 |
| | ≤ 0.001 | ≤ 0.001 | ≥ 0.49 | |
| ATF Errors | 65 | 7 | 58 | ≤ 0.001 |
| ATF/ Lying | 49a | 3 | 46a | ≤ 0.0001 |
| ATF/ Standing | 12b | 2 | 10b | 0.004 |
| ATF/ Walk | 4b | 2 | 2b | 1.0 |
| ATF/ ATW5 | – | – | – | – |
| | ≤ 0.001 | 0.72 | ≥ 0.003 | |
| ATW Errors | 32 | 12 | 20 | ≤ 0.001 |
| ATW/ Lying | 8b | 0b | 8 | 0.16 |
| ATW/ Standing | 22a | 10a | 12 | 0.23 |
| ATW/ Walk | 2b | 2b | 0 | 0.16 |
| ATW/ ATF5 | – | – | – | – |
| | ≤ 0.03 | 0.01 | ≥ 0.79 |
Classification of behavior determined by NUtrack.
Classification of behavior determined by trained evaluators.
Pigs were classified as at the feeder (ATF) when head of an individual pig was determined to be within the annotated location of the feeder (Figure 3a).
Pigs were classified as at the waterer (ATW) when the head of an individual pig was determined to be within the annotated location of the waterer (Figure 3a).
The lack of errors associated with ATF/ATW and ATW/ATF is due to classification of behavior reliant upon pig being within a specific area within the camera view.
Denotes differences (P < 0.05) within columns between behavior classifications.
Overall percentage of time associated with the behavior of lying, standing, at the feeder and at the water, in addition the number of visits, and duration of visits to the feeder and waterer of 28 individual nursery pigs during a 42 d of the nursery phase, as classified by the NUtrack system
| Lying | Standing | Walking | ATF3 | ATW6 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| % Time1 | % Time | % Time | m/d2 | % Time | visits/d4 | s/v5 | % Time | visits/d | s/v | |
| Ave. | 77.7 | 8.5 | 2.9 | 939.9 | 9.9 | 89.5 | 95.2 | 1.0 | 59.1 | 13.5 |
| Min | 74.4 | 6.5 | 2.1 | 692.2 | 1.1 | 71.9 | 70.8 | 0.3 | 38.9 | 8.7 |
| Max | 80.5 | 10.4 | 3.7 | 1,140.6 | 17.4 | 98.9 | 132.0 | 2.2 | 78.5 | 17.9 |
| SD | 1.6 | 1.1 | 0.4 | 106.1 | 1.7 | 6.7 | 14.4 | 0.3 | 10.2 | 2.3 |
| Weeks | ||||||||||
| 1–7 d | 72.3a | 15.7a | 3.7a | 1,195.8a | 7.3a | 84.2a | 74.2a | 1.1 | 56.8a | 18.8a |
| 8–14 d | 77.2b | 10.2b | 3.0a | 990.9b | 8.7b | 80.7a | 94.3b | 0.9 | 56.3a | 18.5a |
| 15–21 d | 78.1c | 8.4c | 3.6a | 1,219.6a | 9.0b | 92.3b | 84.7c | 1.0 | 67.2b | 14.4b |
| 22–28 d | 78.4c | 5.8d | 2.6b | 819.5c | 11.8c | 114.3c | 105.2d | 1.1 | 77.2c | 12.9c |
| 29–35 d | 80.0c | 5.3d | 2.3c | 722.2d | 11.8c | 97.2b | 105.3d | 0.9 | 61.6b | 13.8b,c |
| 36–42 d | 80.4c | 5.6d | 2.1c | 691.5d | 11.3c | 95.2b | 99.6b | 0.8 | 54.2a | 15.8d |
| | ≤ 0.001 | ≤ 0.001 | ≤ 0.001 | ≤ 0.001 | ≤ 0.001 | ≤ 0.007 | ≤ 0.01 | 0.11 | ≤ 0.04 | ≤ 0.002 |
| SEM | 0.56 | 0.32 | 0.09 | 141.0 | 0.48 | 2.72 | 3.84 | 0.06 | 2.84 | 1.19 |
| Gender | ||||||||||
| Barrows (n = 12) | 77.2 | 9.0 | 2.9 | 954.5 | 9.8 | 92.0 | 94.4 | 1.0a | 63.2 | 15.0 |
| Gilts (n = 16) | 77.8 | 8.3 | 2.9 | 934.5 | 10.0 | 96.0 | 93.5 | 0.9b | 61.5 | 16.2 |
| | 0.52 | 0.13 | 0.83 | 0.98 | 0.53 | 0.35 | 0.88 | 0.04 | 0.74 | 0.63 |
| SEM | 0.47 | 0.32 | 0.11 | 223.2 | 0.49 | 2.94 | 4.26 | 0.06 | 3.74 | 1.78 |
Percent of time (% time) associated with lying, standing, walking, at the feeder and at the waterer as determined by the NUtrack system during the 42-d nursery period.
Meters traveled per day (m/d) as determined by the NUtrack system.
Pigs were classified as at the feeder (ATF) when head of an individual pig was determined to be within the annotated location of the feeder (Figure 3a).
Number of visits per day (visits/d) to the feeder or waterer determined by the NUtrack system.
Mean duration in seconds/visit (s/v) to the feeder or waterer determined by the NUtrack system.
Pigs were classified as at the waterer (ATW) when the head of an individual pig was determined to be within the annotated location of the waterer (Figure 3a).
Denote differences (P < 0.05) within columns between variable of interest.