Predicting Greenhouse Microclimatic Parameters Using a Deep Learning Algorithm

Document Type : Research Paper

Authors

Department of Agricultural Machinery Engineering, Faculty of Agriculture, University of Tehran, Karaj, Iran.

Abstract

Providing proper conditions for plant growth in the greenhouse requires precise management of resources concerning operating costs. Consequently, an automatic and efficient greenhouse weather control system is needed for accurate management and cost reduction. Traditionally, dynamic models have been valuable tools for controlling the greenhouse climate. In this research, the design of a system for predicting the environmental conditions of the greenhouse was studied using deep learning. The developed method was implemented to ensure precise conditions for the production of tomato crops in a glass greenhouse. The deep learning-based model successfully predicted the greenhouse temperature, relative humidity, and carbon dioxide concentration using inputs such as wind speed, the virtual sky temperature, cumulative outside global radiation, outside photosynthetically active radiation, outside temperature, outside relative humidity, and outside carbon dioxide concentration, with coefficients of determination of 0.81, 0.61, and 0.85, respectively. The performance of the deep neural network was significant due to the utilization of precise data controlled by expert operators. Compared to dynamic modelling, the advantages of the suggested framework include high stability, adaptability for use without the need for a previous model, the ability to make unlimited decisions, and low complexity in real-time training. Therefore, smart artificial intelligence methods can lead to finding the best solution for optimal greenhouse control, enhancing performance, and reducing costs while addressing other limitations.

Keywords

Main Subjects


EXTENDED ABSTRACT

 

Introduction

Population growth, increased demand for food, and climate change have placed significant pressure on water resources. Agricultural production accounts for 85% of global water consumption. One effective solution to this challenge, which has garnered substantial attention over the past few decades, is greenhouse cultivation. Various models, including dynamic models, black-box models, and machine learning models, have been developed to predict and control greenhouse environmental conditions and support plant growth. Dynamic models, based on mass and energy equations, govern the internal environment of greenhouses. Recent advancements in artificial intelligence have enabled smart control of greenhouse microclimates, focusing on maximizing production while reducing costs. Deep learning-based models represent cutting-edge methods capable of analyzing large volumes of data with complex patterns. This research aims to predict environmental conditions inside greenhouses using artificial intelligence algorithms and to compare these predictions with traditional dynamic models. The outputs will be assessed against actual conditions, environmental changes, and disturbances.

Materials and Methods

The deep neural network designed to simulate the environmental conditions inside the greenhouse incorporates various inputs, including wind speed, virtual sky temperature, cumulative outside global radiation, outside photosynthetically active radiation, outside temperature, outside relative humidity, and outside carbon dioxide concentration. The outputs of the network are temperature, humidity, and carbon dioxide concentration within the greenhouse. Python serves as the foundational programming language for developing deep learning models, enabling the design of complex network architectures with improved precision and efficiency. This research utilized a dataset focused on the environmental and control parameters of tomato plants. The tomato seeds were cultivated in stone wool beds using hydroponic techniques. An innovative deep neural network structure was proposed in this study to achieve automatic microclimate control in greenhouses.

Results

The developed deep learning-based model predicted the temperature, relative humidity, and carbon dioxide concentration inside the greenhouse with coefficients of determination of 0.81, 0.61, and 0.85, respectively. The temperature in the greenhouse was predicted with good accuracy by the deep neural network model, demonstrating better results with less variation. Additionally, the relative humidity was maintained within a lower range, effectively preventing fungal growth. A similar trend was observed between deep learning models and dynamical mathematical models in predicting CO2 concentration. Artificial intelligence (AI) models offer several advantages, including the ability to make decisions over an unlimited forecasting horizon without relying on prior models, high inherent stability, adaptability, and low complexity in real-time training. AI models can analyze vast amounts of input data and identify complex patterns that may not be easily discernible using traditional system dynamics approach. This capability enables accurate predictions and optimized control of greenhouse environmental conditions, facilitating improved plant growth. AI models can adapt to and learn from new data, continuously enhancing their predictive capabilities over time. Their dynamic and responsive predictions support better decision-making processes. Ultimately, deep learning models can conduct a comprehensive analysis of multiple variables simultaneously, considering numerous influential factors such as temperature, humidity, light levels, and carbon dioxide concentration. This approach not only reduces costs but also enhances overall efficiency.

Conclusion

This research proposed a deep learning-based approach to predict greenhouse environmental conditions for tomato production. The exceptional performance of the deep neural network model was attributed to its structural design for pattern recognition and the precise data collected from a greenhouse managed by expert operators. Dynamic models play a crucial role in illustrating the effects of parameters on the greenhouse microclimate and in modeling product growth. They are especially valuable when setting up a greenhouse in a new geographical location without the availability of expert knowledge. In the future, other deep learning models and optimization algorithms could be employed to reduce production costs and optimize energy consumption by utilizing data from various geographical locations.

Author Contributions

Conceptualization, H.G., S.S.M. and R.A.; methodology, H.G.; software, H.G.; validation, H.G. and R.A.; formal analysis, H.G.; investigation, H.G. and R.A.; resources, H.G. and R.A.; writing—original draft preparation, H.G., S.S.M., R.A. and M.H.; writing—review and editing, R.A. and M.H.; supervision, R.A. and S.S.M.; project administration, R.A.; funding acquisition, R.A..

Data Availability Statement

Data sets generated during the current study are available from https://doi.org/10.4121/uuid:88d22c60-21b3-4ea8-90db-20249a5be2a7.

Acknowledgements

The authors express their gratitude to the University of Tehran for providing essential resources to facilitate this research.

Ethical considerations

The study was approved by the Ethics Committee of the University of ABCD (Ethical code: IR.UT.RES.2024.500). The authors avoided data fabrication, falsification, plagiarism, and misconduct.

Conflict of interest

The author declares no conflict of interest.

Ajagekar, A., & You, F. (2022). Deep reinforcement learning based automatic control in semi-closed greenhouse systems. IFAC-PapersOnLine, 55(7), 406–411. https://doi.org/10.1016/j.ifacol.2022.07.477
Bolandnazar, E., sadrnia,  hassan, Rohani, A., & Taki, M. (2020). Prediction of Temperature in a Greenhouse Covered with Polyethylene Plastic Using Artificial Neural Networks, Case Study: Jiroft Region. Iranian Journal of Biosystems Engineering, 51(1), 125–137. (In Persian). https://doi.org/10.22059/ijbse.2019.291077.665235
Bot, G. P. A. (1991). Physical modeling of greenhouse climate. IFAC Proceedings Volumes, 24(11), 7–12. https://doi.org/10.1016/B978-0-08-041273-3.50006-9
Chalabi, Z. S., & Bailey, B. J. (1991). Sensitivity analysis of a non-steady state model of the greenhouse microclimate. Agricultural and Forest Meteorology, 56(1–2), 111–127. https://doi.org/10.1016/0168-1923(91)90107-2
Chen, T.-H., Lee, M.-H., Hsia, I.-W., Hsu, C.-H., Yao, M.-H., & Chang, F.-J. (2022). Develop a smart microclimate control system for greenhouses through system dynamics and machine learning techniques. Water, 14(23), 3941.
De Zwart, H. F. (1996). Analyzing energy-saving options in greenhouse cultivation using a simulation model. Wageningen University and Research.
Falamarzi, Y., Palizdan, N., Huang, Y. F., & Lee, T. S. (2014). Estimating evapotranspiration from temperature and wind speed data using artificial and wavelet neural networks (WNNs). Agricultural Water Management, 140, 26–36. https://doi.org/10.1016/j.agwat.2014.03.014
Ferreira, P. M., Faria, E. A., & Ruano, A. E. (2002). Neural network models in greenhouse air temperature prediction. Neurocomputing, 43(1–4), 51–75. https://doi.org/10.1016/S0925-2312(01)00620-8
Gong, L., Yu, M., Jiang, S., Cutsuridis, V., & Pearson, S. (2021). Deep learning based prediction on greenhouse crop yield combined TCN and RNN. Sensors, 21(13), 4537. https://doi.org/10.3390/s21134537
He, G., Geng, C., Zhai, J., Zhao, Y., Wang, Q., Jiang, S., Zhu, Y., & Wang, L. (2021). Impact of food consumption patterns change on agricultural water requirements: An urban-rural comparison in China. Agricultural Water Management, 243, 106504. https://doi.org/10.1016/j.agwat.2020.106504
He, L., Du, Y., Wu, S., & Zhang, Z. (2021). Evaluation of the agricultural water resource carrying capacity and optimization of a planting-raising structure. Agricultural Water Management, 243, 106456. https://doi.org/10.1016/j.agwat.2020.106456
Hemming, S., de Zwart, F., Elings, A., Righini, I., & Petropoulou, A. (2019). Remote control of greenhouse vegetable production with artificial intelligence—greenhouse climate, irrigation, and crop production. Sensors, 19(8), 1807. https://doi.org/10.3390/s19081807
Hemming, S., Zwart, F. de, Elings, A., Petropoulou, A., & Righini, I. (2020). Cherry tomato production in intelligent greenhouses—Sensors and AI for control of climate, irrigation, crop yield, and quality. Sensors, 20(22), 6430. https://doi.org/10.3390/s20226430
Heuvelink, E. (1996). Tomato growth and yield: quantitative analysis and synthesis. Wageningen University and Research.
Hu, H.-G., Xu, L.-H., Wei, R.-H., & Zhu, B.-K. (2011). RBF network based nonlinear model reference adaptive PD controller design for greenhouse climate. Int. J. Adv. Comput. Technol, 3, 357–366.
Jia, W., & Wei, Z. (2022). Short term prediction model of environmental parameters in typical solar greenhouse based on deep learning neural network. Applied Sciences, 12(24), 12529.
Jung, D.-H., Kim, H. S., Jhin, C., Kim, H.-J., & Park, S. H. (2020). Time-serial analysis of deep neural network models for prediction of climatic conditions inside a greenhouse. Computers and Electronics in Agriculture, 173, 105402.
Klarin, B., Garafulić, E., Vučetić, N., & Jakšić, T. (2019). New and smart approach to aeroponic and seafood production. Journal of Cleaner Production, 239, 117665. https://doi.org/10.1016/j.jclepro.2019.117665
Konig, B., Kuntosch, A., Bokelmann, W., Doernberg, A., Schwerdtner, W., Busse, M., Siebert, R., Koschatzky, K., & Stahlecker, T. (2012). Analysing agricultural innovation systems: a multilevel mixed methods approach. https://doi.org/10.22004/ag.econ.135792
Lin, D., Zhang, L., & Xia, X. (2021). Model predictive control of a Venlo-type greenhouse system considering electrical energy, water and carbon dioxide consumption. Applied Energy, 298(October 2020), 117163. https://doi.org/10.1016/j.apenergy.2021.117163
McNutty, J. (2017). Solar greenhouses generate electricity and grow crops at the same time, UC Santa Cruz study reveals. In USC Newscenter. University of California.
Morales-García, J., Terroso-Sáenz, F., & Cecilia, J. M. (2024). A multi-model deep learning approach to address prediction imbalances in smart greenhouses. Computers and Electronics in Agriculture, 216, 108537.
Seginer, I. (1997). Some artificial neural network applications to greenhouse environmental control. Computers and Electronics in Agriculture, 18(2–3), 167–186. https://doi.org/10.1016/S0168-1699(97)00028-8
Seginer, I., Boulard, T. H., & Bailey, B. J. (1994). Neural network models of the greenhouse climate. Journal of Agricultural Engineering Research, 59(3), 203–216. https://doi.org/10.1006/jaer.1994.1078
Shi, D., Yuan, P., Liang, L., Gao, L., Li, M., & Diao, M. (2024). Integration of deep learning and sparrow search algorithms to optimize greenhouse microclimate prediction for seedling environment suitability. Agronomy, 14(2), 254.
Shin, S. H., Deb, N. C., Arulmozhi, E., Tamrakar, N., Ogundele, O. M., Kook, J., Kim, D. H., & Kim, H. T. (2024). Prediction of Carbon Dioxide Concentrations in Strawberry Greenhouse by Using Time Series Models. Agriculture, 14(11), 1895. https://doi.org/10.3390/agriculture14111895
Singh, R. D., & Tiwari, G. N. (2010). Energy conservation in the greenhouse system: A steady state analysis. Energy, 35(6), 2367–2373. https://doi.org/10.1016/j.energy.2010.02.003
Statistical Center of Iran, (2019). National Statistical Yearbook. Agriculture, Forestry and Fisheries. (In Persian).
Van Henten, E. J. (2003). Sensitivity Analysis of an Optimal Control Problem in Greenhouse Climate Management. Biosystems Engineering, 85(3), 355–364. https://doi.org/https://doi.org/10.1016/S1537-5110(03)00068-0
Vanthoor, B. H. E. (2011). A model-based greenhouse design method. Wageningen University and Research.
Vanthoor, B. H. E., De Visser, P. H. B., Stanghellini, C., & Van Henten, E. J. (2011). A methodology for model-based greenhouse design: Part 2, description and validation of a tomato yield model. Biosystems Engineering, 110(4), 378–395. https://doi.org/10.1016/j.biosystemseng.2011.08.005
Vanthoor, B. H. E., Stanghellini, C., Van Henten, E. J., & De Visser, P. H. B. (2011). A methodology for model-based greenhouse design: Part 1, a greenhouse climate model for a broad range of designs and climates. Biosystems Engineering, 110(4), 363–377. https://doi.org/10.1016/j.biosystemseng.2011.06.001
Wang, D., Wang, M., & Qiao, X. (2009). Support vector machines regression and modeling of greenhouse environment. Computers and Electronics in Agriculture, 66(1), 46–52. https://doi.org/10.1016/j.compag.2008.12.004
Zeng, S., Hu, H., Xu, L., & Li, G. (2012). Nonlinear adaptive PID control for greenhouse environment based on RBF network. Sensors, 12(5), 5328–5348. https://doi.org/10.3390/s120505328