{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,15]],"date-time":"2026-07-15T13:12:23Z","timestamp":1784121143742,"version":"3.55.0"},"reference-count":34,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2023,12,31]],"date-time":"2023-12-31T00:00:00Z","timestamp":1703980800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"S&amp;T Program of Hebei","award":["22326607D"],"award-info":[{"award-number":["22326607D"]}]},{"name":"S&amp;T Program of Hebei","award":["HBCT2023210204"],"award-info":[{"award-number":["HBCT2023210204"]}]},{"name":"S&amp;T Program of Hebei","award":["BAIC10-2023"],"award-info":[{"award-number":["BAIC10-2023"]}]},{"name":"S&amp;T Program of Hebei","award":["KY2021017"],"award-info":[{"award-number":["KY2021017"]}]},{"name":"Modern agricultural industrial technology system in Hebei Province Innovation Team Project","award":["22326607D"],"award-info":[{"award-number":["22326607D"]}]},{"name":"Modern agricultural industrial technology system in Hebei Province Innovation Team Project","award":["HBCT2023210204"],"award-info":[{"award-number":["HBCT2023210204"]}]},{"name":"Modern agricultural industrial technology system in Hebei Province Innovation Team Project","award":["BAIC10-2023"],"award-info":[{"award-number":["BAIC10-2023"]}]},{"name":"Modern agricultural industrial technology system in Hebei Province Innovation Team Project","award":["KY2021017"],"award-info":[{"award-number":["KY2021017"]}]},{"name":"Beijing Innovation Consortium of Digital Agriculture Research System","award":["22326607D"],"award-info":[{"award-number":["22326607D"]}]},{"name":"Beijing Innovation Consortium of Digital Agriculture Research System","award":["HBCT2023210204"],"award-info":[{"award-number":["HBCT2023210204"]}]},{"name":"Beijing Innovation Consortium of Digital Agriculture Research System","award":["BAIC10-2023"],"award-info":[{"award-number":["BAIC10-2023"]}]},{"name":"Beijing Innovation Consortium of Digital Agriculture Research System","award":["KY2021017"],"award-info":[{"award-number":["KY2021017"]}]},{"name":"Research Project on Basic Research Business Expenses of Provincial Higher Education Institutions in Hebei Province","award":["22326607D"],"award-info":[{"award-number":["22326607D"]}]},{"name":"Research Project on Basic Research Business Expenses of Provincial Higher Education Institutions in Hebei Province","award":["HBCT2023210204"],"award-info":[{"award-number":["HBCT2023210204"]}]},{"name":"Research Project on Basic Research Business Expenses of Provincial Higher Education Institutions in Hebei Province","award":["BAIC10-2023"],"award-info":[{"award-number":["BAIC10-2023"]}]},{"name":"Research Project on Basic Research Business Expenses of Provincial Higher Education Institutions in Hebei Province","award":["KY2021017"],"award-info":[{"award-number":["KY2021017"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>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\u2013July 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\u2019s datasets were 15,000\u201320,000, the MAE of LSTM was 78.8596 to 136.0896 ppm, and the prediction time of the GRU was 17 to 26 ms.<\/jats:p>","DOI":"10.3390\/s24010244","type":"journal-article","created":{"date-parts":[[2023,12,31]],"date-time":"2023-12-31T06:00:21Z","timestamp":1704002421000},"page":"244","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":21,"title":["A Machine Learning Model Based on GRU and LSTM to Predict the Environmental Parameters in a Layer House, Taking CO2 Concentration as an Example"],"prefix":"10.3390","volume":"24","author":[{"given":"Xiaoyang","family":"Chen","sequence":"first","affiliation":[{"name":"College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Key Laboratory of Meat and Layer Breeding Facilities Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Hebei Provincial Key Laboratory of Livestock and Poultry Breeding Intelligent Equipment and New Energy Utilization, Hebei Agricultural University, Baoding 071001, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lijia","family":"Yang","sequence":"additional","affiliation":[{"name":"College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2344-7441","authenticated-orcid":false,"given":"Hao","family":"Xue","sequence":"additional","affiliation":[{"name":"College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Key Laboratory of Meat and Layer Breeding Facilities Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Hebei Provincial Key Laboratory of Livestock and Poultry Breeding Intelligent Equipment and New Energy Utilization, Hebei Agricultural University, Baoding 071001, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lihua","family":"Li","sequence":"additional","affiliation":[{"name":"College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Key Laboratory of Meat and Layer Breeding Facilities Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Hebei Provincial Key Laboratory of Livestock and Poultry Breeding Intelligent Equipment and New Energy Utilization, Hebei Agricultural University, Baoding 071001, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yao","family":"Yu","sequence":"additional","affiliation":[{"name":"College of Mechanical and Electrical Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Key Laboratory of Meat and Layer Breeding Facilities Engineering, Hebei Agricultural University, Baoding 071001, China"},{"name":"Hebei Provincial Key Laboratory of Livestock and Poultry Breeding Intelligent Equipment and New Energy Utilization, Hebei Agricultural University, Baoding 071001, China"},{"name":"Research Centre of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,12,31]]},"reference":[{"key":"ref_1","first-page":"45","article-title":"Main Factors Influencing the Ammonia Emission of Poultry House","volume":"39","author":"Li","year":"2017","journal-title":"China Poult."},{"key":"ref_2","unstructured":"Zhao, Y. (2018). Effects of Carbon Dioxide Concentration on Performance, Blood Biochemical Indexes and Nutrient Metabolism of Laying Hens. [Master\u2019s Thesis, Hebei Agricultural University]."},{"key":"ref_3","unstructured":"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."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1211","DOI":"10.5713\/ajas.2014.14099","article-title":"Ammonia and carbon dioxide concentrations in a layer house","volume":"27","author":"Kilic","year":"2014","journal-title":"Asian-Australas. J. Anim. Sci."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1016\/j.atmosenv.2013.12.033","article-title":"The development of seasonal emission factors from a Canadian commercial laying hen facility","volume":"86","author":"Morgan","year":"2014","journal-title":"Atmos. Environ."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"108164","DOI":"10.1016\/j.buildenv.2021.108164","article-title":"Learning-based CO2 concentration prediction: Application to indoor air quality control using demand-controlled ventilation","volume":"205","author":"Taheri","year":"2021","journal-title":"Build. Environ."},{"key":"ref_7","first-page":"24","article-title":"A prediction model for environmental factors in a pig house based on statistical learning and deep learning","volume":"42","author":"Ma","year":"2022","journal-title":"J. Shanxi Agric. Univ. Nat. Sci. Ed."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"143","DOI":"10.1016\/j.ijggc.2016.12.010","article-title":"Prediction of CO2 loading capacities of aqueous solutions of absorbents using different computational schemes","volume":"57","author":"Baghban","year":"2017","journal-title":"Int. J. Greenh. Gas Control."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Zarzycki, K., and \u0141awry\u0144czuk, M. (2023). Long Short-Term Memory Neural Networks for Modeling Dynamical Processes and Predictive Control: A Hybrid Physics-Informed Approach. Sensors, 23.","DOI":"10.3390\/s23218898"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Chen, K., Zhou, Y., and Dai, F. (November, January 29). A LSTM-based method for stock returns prediction: A case study of China stock market. Proceedings of the 2015 IEEE International Conference on Big Data, Santa Clara, CA, USA.","DOI":"10.1109\/BigData.2015.7364089"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"124889","DOI":"10.1016\/j.energy.2022.124889","article-title":"Forecasting monthly gas field production based on the CNN-LSTM model","volume":"260","author":"Zha","year":"2022","journal-title":"Energy"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"1662","DOI":"10.1109\/ACCESS.2017.2779939","article-title":"LSTM fully convolutional networks for time series classification","volume":"6","author":"Karim","year":"2017","journal-title":"IEEE Access"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"68","DOI":"10.1049\/iet-its.2016.0208","article-title":"LSTM network: A deep learning approach for short-term traffic forecast","volume":"11","author":"Zhao","year":"2017","journal-title":"IET Intell. Transp. Syst."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Liu, Q., Wang, P., Sun, J., Li, R., and Li, Y. (2023). Wireless Channel Prediction of GRU Based on Experience Replay and Snake Optimizer. Sensors, 23.","DOI":"10.3390\/s23146270"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"41","DOI":"10.1080\/10408340500526766","article-title":"The correlation coefficient: An overview","volume":"36","author":"Asuero","year":"2006","journal-title":"Crit. Rev. Anal. Chem."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"35","DOI":"10.1177\/875647939000600106","article-title":"Interpretation of the correlation coefficient: A basic review","volume":"6","author":"Taylor","year":"1990","journal-title":"J. Diagn. Med. Sonogr."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"520","DOI":"10.1002\/jrsm.1632","article-title":"A critical reflection on computing the sampling variance of the partial correlation coefficient","volume":"14","author":"Goos","year":"2023","journal-title":"Res. Synth. Methods"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"132306","DOI":"10.1016\/j.physd.2019.132306","article-title":"Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network","volume":"40","author":"Sherstinsky","year":"2020","journal-title":"Phys. D Nonlinear Phenom."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"235","DOI":"10.2478\/jaiscr-2019-0006","article-title":"Performance evaluation of deep neural networks applied to speech recognition: RNN, LSTM and GRU","volume":"9","author":"Shewalkar","year":"2019","journal-title":"J. Artif. Intell. Soft Comput. Res."},{"key":"ref_20","unstructured":"Shi, X., Chen, Z., Wang, H., Yeung, D.Y., Wong, W.K., and Woo, W.C. (2015). Convolutional LSTM network: A machine learning approach for precipitation nowcasting. arXiv."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Fu, R., Zhang, Z., and Li, L. (2016, January 11\u201313). Using LSTM and GRU neural network methods for traffic flow prediction. Proceedings of the 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC), Wuhan, China.","DOI":"10.1109\/YAC.2016.7804912"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"110212","DOI":"10.1016\/j.chaos.2020.110212","article-title":"Predictions for COVID-19 with deep learning models of LSTM, GRU and Bi-LSTM","volume":"140","author":"Shahid","year":"2020","journal-title":"Chaos Solitons Fractals"},{"key":"ref_23","unstructured":"Zhang, Z., Robinson, D., and Tepper, J. (2018). The Semantic Web, Proceedings of the 15th International Conference, ESWC, Heraklion, Greece, 3\u20137 June 2018, Springer."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Athiwaratkun, B., and Stokes, J.W. (2017, January 5\u20139). Malware classification with LSTM and GRU language models and a character-level CNN. Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA.","DOI":"10.1109\/ICASSP.2017.7952603"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"125188","DOI":"10.1016\/j.jhydrol.2020.125188","article-title":"Short-term runoff prediction with GRU and LSTM networks without requiring time step optimization during sample generation","volume":"589","author":"Gao","year":"2020","journal-title":"J. Hydrol."},{"key":"ref_26","unstructured":"Staudemeyer, R.C., and Morris, E.R. (2019). Understanding LSTM\u2014A tutorial into long short-term memory recurrent neural networks. arXiv."},{"key":"ref_27","unstructured":"Graves, A., Fern\u00e1ndez, S., and Schmidhuber, J. (2005). International Conference on Artificial Neural Networks, Springer."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"2451","DOI":"10.1162\/089976600300015015","article-title":"Learning to forget: Continual prediction with LSTM","volume":"12","author":"Gers","year":"2000","journal-title":"Neural Comput."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"2222","DOI":"10.1109\/TNNLS.2016.2582924","article-title":"LSTM: A search space odyssey","volume":"28","author":"Greff","year":"2016","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Yang, S., Yu, X., and Zhou, Y. (2020, January 12\u201314). Lstm and gru neural network performance comparison study: Taking yelp review dataset as an example. Proceedings of the International Workshop on Electronic Communication and Artificial Intelligence (IWECAI), Shanghai, China.","DOI":"10.1109\/IWECAI50956.2020.00027"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Agarap, A.F.M. (2018, January 26\u201328). A neural network architecture combining gated recurrent unit (GRU) and support vector machine (SVM) for intrusion detection in network traffic data. Proceedings of the 10th International Conference on Machine Learning and Computing, Macau, China.","DOI":"10.1145\/3195106.3195117"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Dey, R., and Salem, F.M. (2017, January 6\u20139). Gate-variants of gated recurrent unit (GRU) neural networks. Proceedings of the 60th International Midwest Symposium on Circuits and Systems (MWSCAS), Boston, MA, USA.","DOI":"10.1109\/MWSCAS.2017.8053243"},{"key":"ref_33","unstructured":"Bansal, T., Belanger, D., and McCallum, A. (2016, January 15\u201319). Ask the gru: Multi-task learning for deep text recommendations. Proceedings of the 10th ACM Conference on Recommender Systems, Boston, MA, USA."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"143759","DOI":"10.1109\/ACCESS.2020.3009537","article-title":"A novel CNN-GRU-based hybrid approach for short-term residential load forecasting","volume":"8","author":"Sajjad","year":"2020","journal-title":"IEEE Access"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/1\/244\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T21:45:18Z","timestamp":1760132718000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/1\/244"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,12,31]]},"references-count":34,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2024,1]]}},"alternative-id":["s24010244"],"URL":"https:\/\/doi.org\/10.3390\/s24010244","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,12,31]]}}}