PSVII-13 Prediction of feed efficiency in finishing pigs using different machine learning algorithms and growth time intervals.
Bibliographic record
Abstract
Abstract Feed efficiency is a very important trait in the pig industry, but measuring it can be relatively expensive. Utilizing machine learning (ML) to predict feed efficiency can reduce measurement costs and provide valuable insights into feeding patterns. Comparing different algorithms in the ML process helps to ensure that the chosen algorithm is accurate, efficient, interpretable, and well-suited to the specific characteristics of the data. Additionally, predicting feed efficiency using different time intervals can help to identify the optimal time points for measurement, saving time and resources while ensuring accurate and effective feeding practices. For this purpose, 1,480,103 daily feed intake records from 19,591 Canadian Duroc pigs from weeks 9 to 25 of age at the growing period were used. Due to differences in the starting ages, the animal records with more than 30% missing daily records were removed before analysis. Data preprocessing included imputing missing data with the K-nearest neighbours method, removing outliers, and centering and scaling data using the R Caret Package. After data filtering and editing, the daily feed intake records of 14,325 pigs from five consecutive two-week intervals (weeks 11-12, 13-14, 15-16, 17-18, and 19-20) were used jointly with other factors (sex, dam, sire, herd-year-season, pen, common litter, starting age and weight) to predict residual feed intake (RFI) and feed conversion ratio (FCR). The performance of Decision Tree (DEC), Gradient Boosting Method (GBM), K-Nearest Neighbors (KNN), Support Vector Machines (SVM) with a linear kernel, Lasso Regression using the glmnet method (GLMNET), and Random Forest (RF) were tested to identify the best method for predicting feed efficiency using 5-fold cross-validation. Mean absolute error (MAE), root mean square error (RMSE), R², and Pearson’s correlation between predicted and actual data were used to evaluate the model performance. Overall, RF achieved the lowest MAE (0.034 for RFI, 0.037 for FCR) and the highest correlation (0.985 for RFI, 0.986 for FCR) in the training data set, demonstrating superior predictive ability. However, its testing performance declined (MAE: 0.089 for RFI, 0.095 for FCR; correlation: 0.816 for RFI, 0.852 for FCR), suggesting potential overfitting. Additionally, GBM, SVM, and GLMNET also showed strong predictive accuracy, with testing MAE values around 0.072–0.077 for RFI and 0.052–0.073 for FCR, while maintaining correlations above 0.85. In contrast, DEC and KNN exhibited higher error values for MAE and RMSE and lower correlations, highlighting the effectiveness of ensemble-based methods for this predictive task. For predicting RFI and FCR, among the scenarios with two-week intervals, weeks 17-18 were the closest to the complete data scenario. Overall, these results suggest that ensemble-based methods can be used for predicting feed efficiency in pigs, and collecting data in weeks 17-18 of age might reduce the costs of feed intake measurement.
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame machine prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. The Gemma side is a direct model label for every work in the frame, read from the title-only record. The Codex side is a classifier learned from the 10,348 direct Codex labels and calibrated to design-weighted sample rates; fields without enough sample support carry no Codex call. Candidate is the union of the two sides; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels.
Distilled classifier scores by category (both heads)
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.001 | 0.002 |
| Meta-epidemiology (narrow) | 0.000 | 0.000 |
| Meta-epidemiology (broad) | 0.000 | 0.001 |
| Bibliometrics | 0.001 | 0.001 |
| Science and technology studies | 0.000 | 0.000 |
| Scholarly communication | 0.001 | 0.000 |
| Open science | 0.000 | 0.000 |
| Research integrity | 0.000 | 0.000 |
| Insufficient payload (model declined to judge) | 0.002 | 0.001 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one source (direct Gemma or distilled Codex), not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".