基于机器学习的奶牛饲料消耗状态预测模型

    Prediction model for dairy cow feed consumption status based on machine learning

    • 摘要: 饲料作为奶牛重要的营养来源,预测饲料消耗状态对于保障奶牛的健康和提高生产管理效率具有重要意义。然而,由于饲料消耗状态数据呈现出非线性和非平稳的特点,导致预测精度较低。为解决此问题,该研究基于经验模态分解(empirical mode decomposition,EMD)和长短期记忆网络(long short-term memory,LSTM),提出了组合改进的自适应噪声完全集成经验模态分解(improved complete ensemble empirical mode decomposition with adaptive noise,ICEEMDAN)、随机森林(random forest,RF)与改进的LSTM(improved LSTM,ILSTM)的模型,即ICEEMDAN-RF-ILSTM,来预测饲料消耗状态。其通过调整遗忘门的输出值范围以增强模型的特征学习能力。首先,使用ICEEMDAN对饲料消耗状态数据进行分解,得到多个相对平稳的分量。其次,考虑到每个分量具有不同的特性,采用不同的方法来建模不同的分量,以进一步提升预测效果。具体而言,为了提升模型的精度以及泛化能力,使用RF建模频率最高的分量;同时,使用ILSTM建模其余分量,以捕获序列数据中的长期依赖性。最后,将所有分量的预测结果相加得到最终的预测结果。基于自建数据集的试验结果表明,ICEEMDAN-RF-ILSTM对于饲料消耗状态预测具有较高的准确度,其决定系数R2、平均绝对百分比误差与均方根误差分别为0.993、2.576%和0.596%,表明其能有效预测饲料消耗状态,同时其性能优于ICEEMDAN-LSTM模型。该研究为评估饲料消耗状态提供了可行的方法,可为制定调度决策提供了科学的技术支持,并为牧业智能化建设提供借鉴。

       

      Abstract: Feed is essential to provide nutrients to dairy cows. An accurate prediction of feed consumption can greatly contribute to ensuring the health of dairy cows and improving production efficiency. However, the feed consumption status often exhibits nonlinear and non-stationary patterns, resulting in low prediction accuracy. In this study, based on the empirical mode decomposition (EMD) and long short-term memory (LSTM), a prediction model of feed consumption was proposed to combine the improved complete ensemble empirical mode decomposition with adaptive noise (ICEEMDAN), random forest (RF), and improved LSTM (ILSTM), namely ICEEMDAN-RF-ILSTM. Among them, ILSTM, an enhancement of LSTM, was used to adjust the output range of the forgetting gate to retain more data features, thereby improving feature learning. This model decomposed the original data into multiple relatively stationary components. Then, the different features of each component were considered to predict. The first stage was data decomposition. Since ICEEMDAN can decompose nonlinear and nonstationary time sequences into several relatively stationary components, the model decomposed the original data into multiple intrinsic mode function (IMF) components using ICEEMDAN. Each component was arranged from the high to the low frequency. The component with the highest frequency showed complex fluctuation patterns, whereas, the component with the lowest frequency represented the overall change trend of the data, regarded as the trend component. The remaining components reflected the periodic pattern of the data, regarded as the periodic components. The second stage was data prediction for the different components. RF, an ensemble learning method, was used to predict the component with the highest frequency, benefiting from its ability to construct and integrate multiple models. Additionally, the robustness and generalization of the RF model were improved by randomly selecting features. Meanwhile, ILSTM was used to predict the periodic and trend pattern components. The final stage was data integration. The predictions were summed from all components for the final prediction. The model was trained and tested on a self-built feed dataset. The results show that ICEEMDAN-RF-ILSTM achieved high accuracy with the coefficient of determination (R2), mean absolute percentage error (MAPE), and root means square error (RMSE) indicators of 0.993, 2.576%, and 0.596%, respectively, indicating that the methods proposed can effectively predict feed consumption status. At the same time, its performance was better than ICEEMDAN-LSTM and other mainstream models. This research also confirms that LSTM’s learning ability was enhanced by adjusting the output value range of the forgetting gate, in order to retain more features of the data. Meanwhile, by decomposing non-stationary raw data into multiple relatively stationary components, the prediction accuracy was improved. Moreover, by considering the different features of each component and using different methods to predict different components, the prediction accuracy can be further improved. This finding can provide a practical approach to assessing feed consumption, aiding in informed decision-making for intelligent animal husbandry.

       

    /

    返回文章
    返回