Wu Zhidong, Xu Kaixiang, Chen Yanwei, Liu Yonglan, Song Wusheng
School of Mechanical and Electrical Engineering, Qiqihar University, Qiqihar, 161006, China.
The Engineering Technology Research Center for Precision Manufacturing Equipment and Industrial Perception of Heilongjiang Province, Qiqihar, 161006, China.
Sci Rep. 2024 Dec 28;14(1):31141. doi: 10.1038/s41598-024-82492-7.
A prediction model of the pig house environment based on Bayesian optimization (BO), squeeze and excitation block (SE), convolutional neural network (CNN) and gated recurrent unit (GRU) is proposed to improve the prediction accuracy and animal welfare and take control measures in advance. To ensure the optimal model configuration, the model uses a BO algorithm to fine-tune hyper-parameters, such as the number of GRUs, initial learning rate and L2 normal form regularization factor. The environmental data are fed into the SE-CNN block, which extracts the local features of the data through convolutional operations. The SE block further learns the weights of the feature channels, highlights the important features and suppresses the unimportant ones, improving the feature discrimination ability. The extracted local features are fed into the GRU network to capture the long-term dependency in the sequence, and this information is used to predict future values. The indoor environmental parameters of the pig house are predicted. The prediction performance is evaluated through comparative experiments. The model outperforms other models (e.g., CNN-LSTM, CNN-BiLSTM and CNN-GRU) in predicting temperature, humidity, CO and NH concentrations. It has higher coefficient of determination (R), lower mean absolute error (MSE), and mean absolute percentage error (MAPE), especially in the prediction of ammonia, which reaches R of 0. 9883, MSE of 0.03243, and MAPE of 0.01536. These data demonstrate the significant advantages of the BO-SE-CNN-GRU model in prediction accuracy and stability. This model provides decision support for environmental control of pig houses.
提出了一种基于贝叶斯优化(BO)、挤压与激励模块(SE)、卷积神经网络(CNN)和门控循环单元(GRU)的猪舍环境预测模型,以提高预测精度和动物福利,并提前采取控制措施。为确保模型配置最优,该模型使用BO算法对超参数进行微调,如GRU的数量、初始学习率和L2范式正则化因子。环境数据被输入到SE-CNN模块,该模块通过卷积操作提取数据的局部特征。SE模块进一步学习特征通道的权重,突出重要特征并抑制不重要特征,提高特征辨别能力。提取的局部特征被输入到GRU网络中以捕捉序列中的长期依赖性,并利用这些信息预测未来值。对猪舍的室内环境参数进行预测。通过对比实验评估预测性能。该模型在预测温度、湿度、一氧化碳和氨气浓度方面优于其他模型(如CNN-LSTM、CNN-BiLSTM和CNN-GRU)。它具有更高的决定系数(R)、更低的平均绝对误差(MSE)和平均绝对百分比误差(MAPE),尤其是在氨气预测方面,R达到0.9883,MSE为0.03243,MAPE为0.01536。这些数据证明了BO-SE-CNN-GRU模型在预测精度和稳定性方面的显著优势。该模型为猪舍环境控制提供了决策支持。