Apr 30, 2024 · Machine learning (ML) models (XGBoost and Random Forest) were utilized to predict the rate of ARGs changes during pig manure composting. The model evaluation index of the XGBoost model ( R 2 = 0.651) was higher than that of the Random Forest ( R 2 = 0.490), indicating that XGBoost had better prediction performance.