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

Publisher

MDPI AG

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

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3