A Machine Learning Model Based on GRU and LSTM to Predict the Environmental Parameters in a Layer House, Taking CO2 Concentration as an Example
Author:
Chen Xiaoyang123, Yang Lijia1, Xue Hao123ORCID, Li Lihua123, Yu Yao1234
Affiliation:
1. College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China 2. Key Laboratory of Meat and Layer Breeding Facilities Engineering, Hebei Agricultural University, Baoding 071001, China 3. Hebei Provincial Key Laboratory of Livestock and Poultry Breeding Intelligent Equipment and New Energy Utilization, Hebei Agricultural University, Baoding 071001, China 4. Research Centre of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
Abstract
In a layer house, the CO2 (carbon dioxide) concentration above the upper limit can cause the oxygen concentration to be below the lower limit suitable for poultry. This leads to chronic CO2 poisoning in layers, which manifests as listlessness, reduced appetite, weak constitution, decreased production performance, and weakened resistance to disease. Regulating ventilation may ensure a suitable CO2 concentration in layer houses. Predicting the changes in CO2 concentration and regulating the CO2 concentration in advance are key to ensuring healthy large-scale breeding of layers. In recent years, machine learning and deep learning methods have been increasingly applied to this field. A CO2 prediction model for layer house is proposed based on a GRU (gated recurrent unit) and LSTM (long short-term memory). The temperature, humidity, and CO2 were determined as inputs to the model by the correlation coefficient. The datasets of the experimental layer house were continuously measured during June–July 2023, using a self-developed environmental monitor, and the monitored data were used as samples for model inputs. There were 22,000 time series data in the datasets. In this study, multivariate time series data were standardized via data pre-processing to improve model training. GRU and LSTM models were constructed. The models were trained using a training set. Then, these trained models were used to provide predictions on a test set. The prediction errors were calculated using the true values of the test set and the predicted values provided by the models. To test the performance of the model and accuracy of the predictions, predictions were made for different numbers of datasets. The results demonstrated that the combined prediction model had good generalization, stability, and convergence with high prediction accuracy. Due to the structure of the model, the stability of the LSTM model was higher than that of the GRU model, and its prediction accuracy and speed were lower than those of the GRU model. When the datasets of the GRU model were 15,000 to 17,000, The MAE of the GRU was 70.8077 to 126.7029 ppm, and the prediction time of the GRU is 16 to 24 ms. When the LSTM model’s datasets were 15,000–20,000, the MAE of LSTM was 78.8596 to 136.0896 ppm, and the prediction time of the GRU was 17 to 26 ms.
Funder
S&T Program of Hebei Modern agricultural industrial technology system in Hebei Province Innovation Team Project Beijing Innovation Consortium of Digital Agriculture Research System Research Project on Basic Research Business Expenses of Provincial Higher Education Institutions in Hebei Province
Subject
Electrical and Electronic Engineering,Biochemistry,Instrumentation,Atomic and Molecular Physics, and Optics,Analytical Chemistry
Reference34 articles.
1. Main Factors Influencing the Ammonia Emission of Poultry House;Li;China Poult.,2017 2. Zhao, Y. (2018). Effects of Carbon Dioxide Concentration on Performance, Blood Biochemical Indexes and Nutrient Metabolism of Laying Hens. [Master’s Thesis, Hebei Agricultural University]. 3. Burns, R.T., Li, H., Xin, H., Gates, R.S., Overhults, D.G., Earnest, J., and Moody, L.B. (2008). Greenhouse Gas (GHG) Emissions from Broiler Houses in the Southeastern United States, American Society of Agricultural and Biological Engineers. 4. Ammonia and carbon dioxide concentrations in a layer house;Kilic;Asian-Australas. J. Anim. Sci.,2014 5. The development of seasonal emission factors from a Canadian commercial laying hen facility;Morgan;Atmos. Environ.,2014
|
|