Finally, based on all feature variables and useful feature variables, four regression models were constructed and compared using random forest regression (RFR) and support vector regression (SVR): RFR model 1, RFR model 2, SVR model 1, and SVR model 2.The results showed that—compared with texture features—the correlation between color features and pH value was higher, which could better reflect the dynamic changes in pH value.All four models were highly predictive.The RFR model represented the quantitative analysis relationship between image information and pH value better than the SVR model.RFR model 2 was efficient and accurate, and was the best model for pH prediction, with
9425, 0.1758, 0.3651, and 4.2367, respectively.Overall, this study proved the feasibility of using computer vision technology to quantitatively predict pH value during the secondary fermentation of maize silage and provided new insights for Pharmaceutical Accessories monitoring the quality of maize silage.