{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T05:06:00Z","timestamp":1787029560061,"version":"build-2736575974"},"reference-count":35,"publisher":"MDPI AG","issue":"12","license":[{"start":{"date-parts":[[2021,6,9]],"date-time":"2021-06-09T00:00:00Z","timestamp":1623196800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100010661","name":"Horizon 2020 Framework Programme","doi-asserted-by":"publisher","award":["783221"],"award-info":[{"award-number":["783221"]}],"id":[{"id":"10.13039\/100010661","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>With the advent of the Smart Agriculture, the joint utilization of Internet of Things (IoT) and Machine Learning (ML) holds the promise to significantly improve agricultural production and sustainability. In this paper, the design of a Neural Network (NN)-based prediction model of a greenhouse\u2019s internal air temperature, to be deployed and run on an edge device with constrained capabilities, is investigated. The model relies on a time series-oriented approach, taking as input variables the past and present values of the air temperature to forecast the future ones. In detail, we evaluate three different NN architecture types\u2014namely, Long Short-Term Memory (LSTM) networks, Recurrent NNs (RNNs) and Artificial NNs (ANNs)\u2014with various values of the sliding window associated with input data. Experimental results show that the three best-performing models have a Root Mean Squared Error (RMSE) value in the range 0.289\u00f70.402\u2218C, a Mean Absolute Percentage Error (MAPE) in the range of 0.87\u00f71.04%, and a coefficient of determination (R2) not smaller than 0.997. The overall best performing model, based on an ANN, has a good prediction performance together with low computational and architectural complexities (evaluated on the basis of the NetScore metric), making its deployment on an edge device feasible.<\/jats:p>","DOI":"10.3390\/s21123973","type":"journal-article","created":{"date-parts":[[2021,6,9]],"date-time":"2021-06-09T04:22:22Z","timestamp":1623212542000},"page":"3973","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":35,"title":["Forecasting Air Temperature on Edge Devices with Embedded AI"],"prefix":"10.3390","volume":"21","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2857-1617","authenticated-orcid":false,"given":"Gaia","family":"Codeluppi","sequence":"first","affiliation":[{"name":"Internet of Things (IoT) Lab, Department of Engineering and Architecture, University of Parma, Parco Area delle Scienze, 181\/A, 43124 Parma, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4396-8885","authenticated-orcid":false,"given":"Luca","family":"Davoli","sequence":"additional","affiliation":[{"name":"Internet of Things (IoT) Lab, Department of Engineering and Architecture, University of Parma, Parco Area delle Scienze, 181\/A, 43124 Parma, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6688-0934","authenticated-orcid":false,"given":"Gianluigi","family":"Ferrari","sequence":"additional","affiliation":[{"name":"Internet of Things (IoT) Lab, Department of Engineering and Architecture, University of Parma, Parco Area delle Scienze, 181\/A, 43124 Parma, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2021,6,9]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Codeluppi, G., Cilfone, A., Davoli, L., and Ferrari, G. (2019, January 24\u201326). VegIoT Garden: A modular IoT Management Platform for Urban Vegetable Gardens. Proceedings of the IEEE International Workshop on Metrology for Agriculture and Forestry (MetroAgriFor), Portici, Italy.","DOI":"10.1109\/MetroAgriFor.2019.8909228"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"779","DOI":"10.3923\/ijar.2010.779.787","article-title":"Role of Greenhouse Technology in Agricultural Engineering","volume":"5","author":"Kumar","year":"2010","journal-title":"Int. J. Agric. Res."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Francik, S., and Kurpaska, S. (2020). The Use of Artificial Neural Networks for Forecasting of Air Temperature inside a Heated Foil Tunnel. Sensors, 20.","DOI":"10.3390\/s20030652"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Escamilla-Garc\u00eda, A., Soto-Zaraz\u00faa, G.M., Toledano-Ayala, M., Rivas-Araiza, E., and Gast\u00e9lum-Barrios, A. (2020). Applications of Artificial Neural Networks in Greenhouse Technology and Overview for Smart Agriculture Development. Appl. Sci., 10.","DOI":"10.3390\/app10113835"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"7","DOI":"10.1016\/B978-0-08-041273-3.50006-9","article-title":"Physical Modeling of Greenhouse Climate","volume":"24","author":"Bot","year":"1991","journal-title":"IFAC Proc. Vol."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Podnar \u017darko, I., Pripu\u017ei\u0107, K., and Serrano, M. (2015). An Open-Source Cloud Architecture for Big Stream IoT Applications. Interoperability and Open-Source Solutions for the Internet of Things: International Workshop, FP7 OpenIoT Project, Held in Conjunction with SoftCOM 2014, Split, Croatia, 18 September 2014, Invited Papers, Springer International Publishing.","DOI":"10.1007\/978-3-319-16546-2"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"104877","DOI":"10.1016\/j.compag.2019.104877","article-title":"Wireless sensor networks for greenhouses: An end-to-end review","volume":"163","author":"Kochhar","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Codeluppi, G., Cilfone, A., Davoli, L., and Ferrari, G. (2020). LoRaFarM: A LoRaWAN-Based Smart Farming Modular IoT Architecture. Sensors, 20.","DOI":"10.3390\/s20072028"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Abbasi, M., Yaghmaee, M.H., and Rahnama, F. (2019, January 17\u201318). Internet of Things in agriculture: A survey. Proceedings of the 3rd International Conference on Internet of Things and Applications (IoT), Isfahan, Iran.","DOI":"10.1109\/IICITA.2019.8808839"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"95","DOI":"10.1016\/j.icte.2016.07.001","article-title":"Integration of Wi-Fi mobile nodes in a Web of Things Testbed","volume":"2","author":"Davoli","year":"2016","journal-title":"ICT Express"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Tafa, Z., Ramadani, F., and Cakolli, B. (2018, January 10\u201314). The Design of a ZigBee-Based Greenhouse Monitoring System. Proceedings of the 7th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro.","DOI":"10.1109\/MECO.2018.8405966"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Wiboonjaroen, M.T.W., and Sooknuan, T. (2017, January 18\u201321). The Implementation of PI Controller for Evaporative Cooling System in Controlled Environment Greenhouse. Proceedings of the 17th International Conference on Control, Automation and Systems (ICCAS), Jeju, Korea.","DOI":"10.23919\/ICCAS.2017.8204344"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Zou, Z., Bie, Y., and Zhou, M. (2018, January 25\u201327). Design of an Intelligent Control System for Greenhouse. Proceedings of the 2nd IEEE Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC), Xi\u2019an, China.","DOI":"10.1109\/IMCEC.2018.8469309"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"105023","DOI":"10.1016\/j.compag.2019.105023","article-title":"Interpolation of Greenhouse Environment Data using Multilayer Perceptron","volume":"166","author":"Moon","year":"2019","journal-title":"Comput. Electron. Agric."},{"key":"ref_15","first-page":"253","article-title":"Applied machine learning in greenhouse simulation; New application and analysis","volume":"5","author":"Taki","year":"2018","journal-title":"Inf. Process. Agric."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Yue, Y., Quan, J., Zhao, H., and Wang, H. (2018, January 5\u20138). The Prediction of Greenhouse Temperature and Humidity Based on LM-RBF Network. Proceedings of the IEEE International Conference on Mechatronics and Automation (ICMA), Changchun, China.","DOI":"10.1109\/ICMA.2018.8484456"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Lee, Y., Tsung, P., and Wu, M. (2018, January 16\u201319). Techology Trend of Edge AI. Proceedings of the International Symposium on VLSI Design, Automation and Test (VLSI-DAT), Hsinchu, Taiwan.","DOI":"10.1109\/VLSI-DAT.2018.8373244"},{"key":"ref_18","unstructured":"Karray, F., Campilho, A., and Yu, A. (2019). NetScore: Towards Universal Metrics for Large-Scale Performance Analysis of Deep Neural Networks for Practical On-Device Edge Usage. Image Analysis and Recognition, Springer International Publishing."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Codeluppi, G., Cilfone, A., Davoli, L., and Ferrari, G. (2020, January 4\u20136). AI at the Edge: A Smart Gateway for Greenhouse Air Temperature Forecasting. Proceedings of the IEEE International Workshop on Metrology for Agriculture and Forestry (MetroAgriFor), Trento, Italy.","DOI":"10.1109\/MetroAgriFor50201.2020.9277553"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"e00938","DOI":"10.1016\/j.heliyon.2018.e00938","article-title":"State-of-the-art in artificial neural network applications: A survey","volume":"4","author":"Abiodun","year":"2018","journal-title":"Heliyon"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Cifuentes, J., Marulanda, G., Bello, A., and Reneses, J. (2020). Air Temperature Forecasting Using Machine Learning Techniques: A Review. Energies, 13.","DOI":"10.3390\/en13164215"},{"key":"ref_22","unstructured":"Kavlakoglu, E. (2021, March 02). AI vs. Machine Learning vs. Deep Learning vs. Neural Networks: What\u2019s the Difference?. Available online: https:\/\/www.ibm.com\/cloud\/blog\/ai-vs-machine-learning-vs-deep-learning-vs-neural-networks."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Ferrero Bermejo, J., G\u00f3mez Fern\u00e1ndez, J.F., Olivencia Polo, F., and Crespo M\u00e1rquez, A. (2019). A Review of the Use of Artificial Neural Network Models for Energy and Reliability Prediction. A Study of the Solar PV, Hydraulic and Wind Energy Sources. Appl. Sci, 8.","DOI":"10.3390\/app9091844"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"2627","DOI":"10.1016\/S1352-2310(97)00447-0","article-title":"Artificial neural networks (the multilayer perceptron)\u2014A review of applications in the atmospheric sciences","volume":"32","author":"Gardner","year":"1998","journal-title":"Atmos. Environ."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"157","DOI":"10.1109\/72.279181","article-title":"Learning long-term dependencies with gradient descent is difficult","volume":"5","author":"Bengio","year":"1994","journal-title":"IEEE Trans. Neural Netw."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"1735","DOI":"10.1162\/neco.1997.9.8.1735","article-title":"Long Short-Term Memory","volume":"9","author":"Hochreiter","year":"1997","journal-title":"Neural Comput."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"790","DOI":"10.1016\/j.ifacol.2018.08.099","article-title":"Recurrent Neural Network Model for Prediction of Microclimate in Solar Greenhouse","volume":"51","author":"Hongkang","year":"2018","journal-title":"IFAC-PapersOnLine"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"105402","DOI":"10.1016\/j.compag.2020.105402","article-title":"Time-serial analysis of deep neural network models for prediction of climatic conditions inside a greenhouse","volume":"173","author":"Jung","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"314","DOI":"10.1016\/j.enbuild.2015.11.010","article-title":"Heat transfer and MLP neural network models to predict inside environment variables and energy lost in a semi-solar greenhouse","volume":"110","author":"Taki","year":"2016","journal-title":"Energy Build."},{"key":"ref_30","unstructured":"(2021, February 14). Aggregate Farming in the Cloud (AFarCloud) H2020 Project. Available online: http:\/\/www.afarcloud.eu."},{"key":"ref_31","unstructured":"(2020, February 01). Podere Camp\u00e1z\u2014Produzioni Biologiche. Available online: https:\/\/www.poderecampaz.com."},{"key":"ref_32","unstructured":"(2021, May 15). Chollet, F. Keras5. Available online: https:\/\/keras.io."},{"key":"ref_33","unstructured":"(2021, June 01). Raspberry Pi. Available online: https:\/\/www.raspberrypi.org\/."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"9102","DOI":"10.1109\/ACCESS.2020.2964608","article-title":"Real-Time Apple Detection System Using Embedded Systems With Hardware Accelerators: An Edge AI Application","volume":"8","author":"Mazzia","year":"2020","journal-title":"IEEE Access"},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"11573","DOI":"10.1109\/JSEN.2019.2935812","article-title":"Designing Future Precision Agriculture: Detection of Seeds Germination Using Artificial Intelligence on a Low-Power Embedded System","volume":"19","author":"Shadrin","year":"2019","journal-title":"IEEE Sens. J."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/12\/3973\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T06:12:20Z","timestamp":1760163140000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/12\/3973"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,6,9]]},"references-count":35,"journal-issue":{"issue":"12","published-online":{"date-parts":[[2021,6]]}},"alternative-id":["s21123973"],"URL":"https:\/\/doi.org\/10.3390\/s21123973","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,6,9]]}}}