| Literature DB >> 31504579 |
Herman Mollenhorst1, Bart J Ducro1, Karel H De Greef1, Ina Hulsegge1, Claudia Kamphuis1.
Abstract
In pig production, efficiency is benefiting from uniform growth in pens resulting in single deliveries from a pen of possibly all animals in the targeted weight range. Abnormalities, like pneumonia or aberrant growth, reduce production efficiency as it reduces the uniformity and might cause multiple deliveries per batch and pigs delivered with a low meat yield or outside the targeted weight range. Early identification of pigs prone to develop these abnormalities, for example, at the onset of the growing-finishing phase, would help to prevent heterogeneous pens through management interventions. Data about previous production cycles at the farm combined with data from the piglet's own history may help in identifying these abnormalities. The aim of this study, therefore, was to predict at the onset of the growing-finishing phase, that is, at 3 mo in advance, deviant pigs at slaughter with a machine-learning technique called boosted trees. The dataset used was extracted from the farm management system of a research center. It contained over 70,000 records of individual pigs born between 2004 and 2016, including information on, for example, offspring, litter size, transfer dates between production stages, their respective locations within the barns, and individual live-weights at several production stages. Results obtained on an independent test set showed that at a 90% specificity rate, the sensitivity was 16% for low meat percentage, 20% for pneumonia and 36% for low lifetime growth rate. For low lifetime growth rate, this meant an almost three times increase in positive predictive value compared to the current situation. From these results, it was concluded that routine performance information available at the onset of the growing-finishing phase combined with data about previous production cycles formed a moderate base to identify pigs prone to develop pneumonia (AUC > 0.60) and a good base to identify pigs prone to develop growth aberrations (AUC > 0.70) during the growing-finishing phase. The mentioned information, however, was not a sufficient base to identify pigs prone to develop low meat percentage (AUC < 0.60). The shown ability to identify growth aberrations and pneumonia can be considered a good first step towards the development of an early warning system for pigs in the growing-finishing phase.Entities:
Keywords: boosted trees; growth; machine learning; pig production; pneumonia
Mesh:
Year: 2019 PMID: 31504579 PMCID: PMC6776275 DOI: 10.1093/jas/skz274
Source DB: PubMed Journal: J Anim Sci ISSN: 0021-8812 Impact factor: 3.159
Figure 1.Mean pneumonia prevalence per year. Bar width represents the number of nonmissing values for pneumonia status. Total number of records is 35,125.
Figure 2.Median and interquartile range of lifetime growth rate (kg/d) per year. Box width represents the number of nonmissing values for lifetime growth rate. Total number of records is 61,041.
Figure 3.Median and interquartile range of meat percentage per year. Box width represents the number of nonmissing values for meat percentage. Total number of records is 60,889.
Mean, first and third quartile and percentage of missing values (of 61,041 records) for numerical prediction variables used as input for training boosted trees to predict pneumonia, growth, and meat percentage
| Variable name | Mean | Q1 | Q3 | Missing, % |
|---|---|---|---|---|
| Birth weight, kg | 1.45 | 1.22 | 1.65 | 0.4 |
| Number of live born piglets per litter | 14.7 | 13 | 17 | 15.4 |
| Percentage males in litter | 0.52 | 0.43 | 0.60 | 15.4 |
| Number of dead born piglets in litter | 0.91 | 0 | 1 | 15.4 |
| Number of mummified piglets in litter | 0.29 | 0 | 0 | 15.4 |
| Median birth weight litter | 1.43 | 1.26 | 1.57 | 0.1 |
| Standard deviation birth weight litter | 0.27 | 0.21 | 0.32 | 0.1 |
| Deviation from median birth weight of litter | 0.02 | −0.12 | 0.17 | 0.4 |
| Weight at weaning, kg | 7.87 | 6.80 | 9.00 | 1.9 |
| Age at weaning, days | 26.6 | 25 | 28 | 21.8 |
| Number of weaned piglets in litter | 12.1 | 11 | 13 | 15.4 |
| Number of deaths in litter till weaning | 1.84 | 0 | 3 | 15.4 |
| Growth rate till start growing-finishing phase, kg/d | 0.37 | 0.33 | 0.41 | 11.8 |
| Number of growing-finishing pigs in pen1 | 17.0 | 11 | 12 | 0.0 |
| Moving average slaughter weight, kg | 91.0 | 89.4 | 92.6 | 12.5 |
| Moving average pneumonia | 0.05 | 0.00 | 0.07 | 12.5 |
| Moving average affected liver | 0.01 | 0.00 | 0.02 | 12.5 |
| Moving average pleuritis | 0.18 | 0.11 | 0.24 | 12.5 |
| Moving average skin inflammations | 0.01 | 0.00 | 0.02 | 12.5 |
| Moving average leg inflammations | 0.02 | 0.00 | 0.03 | 12.5 |
| BLUP estimator growth per day previous batch | 0.03 | −1.92 | 1.98 | 2.9 |
| Moving average of BLUP estimator growth per day 2 previous batches | 0.04 | −1.50 | 1.56 | 6.4 |
1High mean due to some very large groups, probably due to classifying whole section as one pen (All stables were subdivided in sections and within sections in pens).
Frequencies in five most frequent categories per variable and percentage of missing values (of 61,041 records) for categorical and ordered prediction variables used as input for training boosted trees to predict pneumonia, growth, and meat percentage
| Variable name | 1 | 2 | 3 | 4 | 5 | >5/other | Missing, % |
|---|---|---|---|---|---|---|---|
| Litter number of mother | 10,627 | 10,967 | 9,982 | 8,651 | 7,182 | 13,632 | 0.0 |
| Piglet belongs to which quartile of birthweight within litter | 13,556 | 15,039 | 17,294 | 14,759 | 0.4 | ||
| Number of (foster) sows till weaning | 48,898 | 10,796 | 1,156 | 118 | 7 | 0.1 | |
| Sex1 | 29,612 | 29,638 | 2.9 | ||||
| Boar line2 | 50,226 | 881 | 693 | 674 | 16 | 14.0 | |
| Sow line3 | 32,486 | 16,461 | 4,080 | 1,328 | 11.0 | ||
| Nursing stable4 | 31,216 | 28,372 | 143 | 26 | 2.1 | ||
| Weaners stable4 | 25,495 | 11,124 | 6,192 | 1,482 | 985 | 2,430 | 21.8 |
| Growing-finishing stable4 | 59,607 | 1,434 | 0.0 |
1Sex: 1 = female, 2 = male.
2Boar line: 1 = synthetic, 2 = large white, 3 = Duroc, 4 = landrace, 5 = Pietrain.
3Sow line: 1 = landrace × large white; 2 = large white × landrace, 3 = large white, 4 = landrace.
4All stables were subdivided in sections and within sections in pens. Section information was also used as input for the models.
Performance characteristics, area under the receiver operating characteristic curve (AUC), and sensitivity at 90% specificity, for pneumonia, low meat percentage, and low lifetime growth rate prediction as averaged over 98 model repetitions (including SD)1
| AUC (SD) | Sensitivity at 90% specificity (SD) | |||||
|---|---|---|---|---|---|---|
| Predicted variable | Train | TestTrain | TestNew | Train | TestTrain | TestNew |
| Pneumonia | 0.83 (0.01) | 0.73 (0.03) | 0.64 (0.17) | 50 (2) | 30 (5) | 20 (27) |
| Low meat % | 0.71 (0.01) | 0.63 (0.01) | 0.58 (0.09) | 31 (1) | 19 (1) | 16 (12) |
| Low lifetime growth rate | 0.74 (0.00) | 0.69 (0.01) | 0.73 (0.09) | 38 (1) | 31 (1) | 36 (17) |
1In each model repetition, the TestNew set was an entirely independent dataset containing the next batch, while the Train and TestTrain set were a 70/30% random sample at batch level of all previous batches.
Figure 4.Aggregated receiver operating characteristic curves, based on all predicted probabilities of the observations in the 98 TestNew datasets, for pneumonia [dotted line, area under the curve (AUC) = 0.70, sensitivity at 90% specificity = 28%], low lifetime growth rate (solid line, AUC = 0.72, sensitivity at 90% specificity = 34%), and low meat percentage (dashed line, AUC = 0.58, sensitivity at 90% specificity = 15%).
Top 10 important variables for predicting pigs with low lifetime growth rate, pneumonia, and low meat percentage expressed in contribution to the reduction of the loss function as averaged (including standard deviations) over batches from 98 model runs
| Variable name | Low lifetime growth rate | Pneumonia | Low meat percentage |
|---|---|---|---|
| Growth rate till start growing-finishing phase | 0.50 (0.03) | 0.07 (0.01) | |
| Birth weight | 0.15 (0.02) | 0.02 (0.01) | |
| Moving average lifetime growth rate of previous batches in pen | 0.04 (0.01) | 0.04 (0.01) | |
| Nursing section | 0.03 (0.01) | 0.04 (0.01) | 0.06 (0.01) |
| Deviation from median birth weight of litter | 0.03 (0.01) | 0.02 (0.01) | 0.02 (0.01) |
| Weight at weaning | 0.03 (0.01) | 0.02 (0.01) | 0.03 (0.01) |
| Boar line | 0.03 (0.01) | 0.13 (0.01) | |
| Birth year | 0.02 (0.01) | 0.19 (0.06) | 0.07 (0.02) |
| Moving average of BLUP estimator of lifetime growth rate | 0.02 (0.01) | ||
| BLUP estimator of lifetime growth rate previous batch in pen | 0.02 (0.01) | 0.02 (0.01) | |
| Moving average pneumonia of previous batches in pen | 0.36 (0.03) | ||
| Birth month | 0.07 (0.03) | ||
| Weaners stable | 0.05 (0.03) | ||
| Moving average pleuritis of previous batches in pen | 0.03 (0.01) | ||
| Sex | 0.18 (0.04) | ||
| Moving average meat percentage of previous batches in pen | 0.13 (0.02) | ||
| Median birth weight litter | 0.03 (0.01) |